X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Flayout.h;h=b6e1446a2c854b92c71006b450e56f5575152c79;hp=7bc2161ec8d60d76a40a9bae0c23c4f4e87b78a5;hb=b2c8662dd3e1d14ed817e9e166f1fd223a5b4754;hpb=eab27dfc9eb0f7b21b560f37ec28f48cfbfa9f40 diff --git a/lib-ui/layout.h b/lib-ui/layout.h index 7bc2161..b6e1446 100644 --- a/lib-ui/layout.h +++ b/lib-ui/layout.h @@ -20,6 +20,8 @@ #ifndef MUTT_LIB_UI_LAYOUT_H #define MUTT_LIB_UI_LAYOUT_H +extern WINDOW *sidebar_w, *main_w; + void ui_layout_init(void); void ui_layout_resize(void); @@ -29,4 +31,16 @@ void mutt_need_hard_redraw(void); void mutt_refresh(void); void mutt_endwin(const char *); +static inline int ui_get_width(WINDOW *w) { + int x, y; + getmaxyx(w, y, x); + return y; +} + +static inline int ui_get_height(WINDOW *w) { + int x, y; + getmaxyx(w, y, x); + return x; +} + #endif