#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);
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