Go to the documentation of this file.
19 #ifndef Fl_Menu_Item_H
20 #define Fl_Menu_Item_H
25 # if defined(__APPLE__) && defined(check)
148 const char*
label()
const {
return text;}
361 int measure(
int* h,
const Fl_Menu_*)
const;
362 void draw(
int x,
int y,
int w,
int h,
const Fl_Menu_*,
int t=0)
const;
367 const char *title = 0,
371 int X,
int Y,
int W,
int H,
375 int menubar=0)
const;
377 const Fl_Menu_Item* find_shortcut(
int *ip=0,
const bool require_alt =
false)
const;
413 int insert(
int,
const char*,
int,
Fl_Callback*,
void* =0,
int =0);
414 int add(
const char*,
int shortcut,
Fl_Callback*,
void* =0,
int = 0);
418 void* d = 0,
int e = 0) {
FL_EXPORT Fl_Shortcut fl_old_shortcut(const char *)
Emulation of XForms named shortcuts.
Definition: fl_shortcut.cxx:396
unsigned int Fl_Color
An FLTK color value; see also Colors
Definition: Enumerations.H:934
@ FL_SUBMENU
This item is a submenu to other items.
Definition: Fl_Menu_Item.H:39
Base class for image caching and drawing.
Definition: Fl_Image.H:55
@ FL_MENU_RADIO
Item is a radio button (one checkbox of many can be on)
Definition: Fl_Menu_Item.H:36
@ FL_MENU_HORIZONTAL
??? – reserved
Definition: Fl_Menu_Item.H:41
@ FL_MENU_INACTIVE
Deactivate menu item (gray out)
Definition: Fl_Menu_Item.H:33
@ FL_MENU_DIVIDER
Creates divider line below this item. Also ends a group of radio buttons.
Definition: Fl_Menu_Item.H:40
unsigned int Fl_Shortcut
24-bit Unicode character + 8-bit indicator for keyboard flags
Definition: fl_types.h:46
@ FL_MENU_INVISIBLE
Item will not show up (shortcut will work)
Definition: Fl_Menu_Item.H:37
@ FL_MENU_VALUE
The on/off state for checkbox/radio buttons (if set, state is 'on')
Definition: Fl_Menu_Item.H:35
int Fl_Fontsize
Size of a font in pixels.
Definition: Enumerations.H:906
int Fl_Font
A font number is an index into the internal font table.
Definition: Enumerations.H:877
Fl_Labeltype
The labeltype() method sets the type of the label.
Definition: Enumerations.H:763
@ FL_SUBMENU_POINTER
Indicates user_data() is a pointer to another menu array.
Definition: Fl_Menu_Item.H:38
Fl_Image, Fl_RGB_Image classes.
virtual void label(Fl_Widget *w)
The label() methods are an obsolete way to set the image attribute of a widget or menu item.
Definition: Fl_Image.cxx:127
unsigned char uchar
unsigned char
Definition: fl_types.h:30
@ FL_MENU_TOGGLE
Item is a checkbox toggle (shows checkbox for on/off state)
Definition: Fl_Menu_Item.H:34