/** * \file * * * \brief Graphic menu bar widget. * * \author Stefano Fedrigo * */ #ifndef GUI_MENUBAR_H #define GUI_MENUBAR_H #include /** Predefined labels ids */ enum LabelId { LABEL_EMPTY, /* empty label */ LABEL_MUTE, LABEL_MENU, LABEL_BACK, LABEL_OK, LABEL_CH_1, LABEL_CH_2, LABEL_C1PLUS2, LABEL_UPARROW, LABEL_DOWNARROW, LABEL_MINUS, LABEL_PLUS, LABEL_SEL, LABEL_LOCK, LABEL_UNLOCK, LABEL_MORE, LABEL_EDIT, LABEL_FAST, LABEL_PREV, LABEL_NEXT, LABEL_SLOW, LABEL_YES, LABEL_NO, LABEL_CNT }; #define UP_ARROW "\x18" #define DOWN_ARROW "\x19" #define RIGHT_ARROW "\xC4\x1A" #define LEFT_ARROW "\x10\xC4" /* Forward decl */ struct Bitmap; typedef struct MenuBar { struct Bitmap *bitmap; const_iptr_t *labels; int num_labels; } MenuBar; void mbar_init( struct MenuBar *mb, struct Bitmap *bmp, const_iptr_t *labels, int num_labels); void mbar_draw(const struct MenuBar *mb); #endif /* GUI_MENUBAR_H */