menubar.h

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