14 #ifndef T3_WIDGET_MENUPANEL_H
15 #define T3_WIDGET_MENUPANEL_H
17 #include <t3widget/dialogs/dialog.h>
18 #include <t3widget/widgets/menu.h>
22 class menu_item_base_t;
29 struct T3_WIDGET_LOCAL implementation_t {
30 int width, label_width, hotkey_width;
34 implementation_t(
const char *name) : label(name), menu_bar(NULL) {}
36 pimpl_ptr<implementation_t>::t impl;
41 void draw_label(t3_window_t *draw_window, t3_attr_t attr,
bool selected)
const;
42 int get_label_width(
void)
const;
43 bool is_hotkey(
key_t key)
const;
54 virtual bool process_key(
key_t key);