#ifndef UI_STATUSBAR_H #define UI_STATUSBAR_H 1 #include struct statusbar { unsigned int y; unsigned int width; char *text; int (*status_func)(WINDOW *, struct statusbar *, bool); chtype attrs; }; typedef int (*status_func)(WINDOW *, struct statusbar *, bool); struct statusbar * init_statusbar(unsigned int y, unsigned int width, chtype attrs, status_func cb_update); void free_statusbar(struct statusbar *a); int statusbar_cb(WINDOW *win, void *data, bool timed_out); void register_statusbar(struct statusbar *a); void set_statusbar_text(struct statusbar *a, const char *text); #endif