BeRTOS
|
00001 00039 #ifndef GUI_MENUBAR_H 00040 #define GUI_MENUBAR_H 00041 00042 #include <cfg/compiler.h> 00043 00045 enum LabelId 00046 { 00047 LABEL_EMPTY, /* empty label */ 00048 LABEL_MUTE, 00049 LABEL_MENU, 00050 LABEL_BACK, 00051 LABEL_OK, 00052 LABEL_CH_1, 00053 LABEL_CH_2, 00054 LABEL_C1PLUS2, 00055 LABEL_UPARROW, 00056 LABEL_DOWNARROW, 00057 LABEL_MINUS, 00058 LABEL_PLUS, 00059 LABEL_SEL, 00060 LABEL_LOCK, 00061 LABEL_UNLOCK, 00062 LABEL_MORE, 00063 LABEL_EDIT, 00064 LABEL_FAST, 00065 LABEL_PREV, 00066 LABEL_NEXT, 00067 LABEL_SLOW, 00068 LABEL_YES, 00069 LABEL_NO, 00070 00071 00072 LABEL_CNT 00073 }; 00074 00075 #define UP_ARROW "\x18" 00076 #define DOWN_ARROW "\x19" 00077 #define RIGHT_ARROW "\xC4\x1A" 00078 #define LEFT_ARROW "\x10\xC4" 00079 00080 /* Forward decl */ 00081 struct Bitmap; 00082 00083 typedef struct MenuBar 00084 { 00085 struct Bitmap *bitmap; 00086 const_iptr_t *labels; 00087 int num_labels; 00088 } MenuBar; 00089 00090 void mbar_init( 00091 struct MenuBar *mb, 00092 struct Bitmap *bmp, 00093 const_iptr_t *labels, 00094 int num_labels); 00095 void mbar_draw(const struct MenuBar *mb); 00096 00097 #endif /* GUI_MENUBAR_H */