4 #include "mainwindows.h"
6 #define SBAR_PRIORITY_HIGH 100
7 #define SBAR_PRIORITY_NORMAL 0
8 #define SBAR_PRIORITY_LOW -100
16 typedef struct SBAR_ITEM_REC SBAR_ITEM_REC;
17 typedef void (*STATUSBAR_FUNC) (SBAR_ITEM_REC *item, int get_size_only);
20 MAIN_WINDOW_REC *window;
28 int ypos; /* real position in screen at the moment */
32 struct SBAR_ITEM_REC {
38 int min_size, max_size;
39 unsigned int right_justify:1;
45 /* ypos is used only when pos == STATUSBAR_POS_MIDDLE */
46 STATUSBAR_REC *statusbar_create(int pos, int ypos);
47 void statusbar_destroy(STATUSBAR_REC *bar);
49 STATUSBAR_REC *statusbar_find(int pos, int line);
51 SBAR_ITEM_REC *statusbar_item_create(STATUSBAR_REC *bar,
52 int priority, int right_justify,
54 void statusbar_item_remove(SBAR_ITEM_REC *item);
56 /* redraw statusbar, NULL = all */
57 void statusbar_redraw(STATUSBAR_REC *bar);
58 void statusbar_item_redraw(SBAR_ITEM_REC *item);
60 void statusbar_init(void);
61 void statusbar_deinit(void);