|
void | activate () |
| Allows a menu item to be picked.
|
|
int | active () const |
| Gets whether or not the item can be picked.
|
|
int | activevisible () const |
| Returns non 0 if FL_INACTIVE and FL_INVISIBLE are cleared, 0 otherwise.
|
|
int | add (const char *, int shortcut, Fl_Callback *, void *=0, int=0) |
| Adds a menu item. More...
|
|
int | add (const char *a, const char *b, Fl_Callback *c, void *d=0, int e=0) |
| See int add(const char*, int shortcut, Fl_Callback*, void*, int)
|
|
long | argument () const |
| Gets the user_data() argument that is sent to the callback function. More...
|
|
void | argument (long v) |
| Sets the user_data() argument that is sent to the callback function. More...
|
|
Fl_Callback_p | callback () const |
| Returns the callback function that is set for the menu item. More...
|
|
void | callback (Fl_Callback *c) |
| Sets the menu item's callback function. More...
|
|
void | callback (Fl_Callback *c, void *p) |
| Sets the menu item's callback function and userdata() argument. More...
|
|
void | callback (Fl_Callback0 *c) |
| Sets the menu item's callback function. More...
|
|
void | callback (Fl_Callback1 *c, long p=0) |
| Sets the menu item's callback function and userdata() argument. More...
|
|
void | check () |
| back compatibility only More...
|
|
int | checkbox () const |
| Returns true if a checkbox will be drawn next to this item. More...
|
|
int | checked () const |
| back compatibility only More...
|
|
void | clear () |
| Turns the check or radio item "off" for the menu item.
|
|
void | deactivate () |
| Prevents a menu item from being picked. More...
|
|
void | do_callback (Fl_Widget *o) const |
| Calls the Fl_Menu_Item item's callback, and provides the Fl_Widget argument. More...
|
|
void | do_callback (Fl_Widget *o, long arg) const |
| Calls the Fl_Menu_Item item's callback, and provides the Fl_Widget argument. More...
|
|
void | do_callback (Fl_Widget *o, void *arg) const |
| Calls the Fl_Menu_Item item's callback, and provides the Fl_Widget argument. More...
|
|
void | draw (int x, int y, int w, int h, const Fl_Menu_ *, int t=0) const |
| Draws the menu item in bounding box x,y,w,h, optionally selects the item.
|
|
const Fl_Menu_Item * | find_shortcut (int *ip=0, const bool require_alt=false) const |
| Search only the top level menu for a shortcut. More...
|
|
Fl_Menu_Item * | first () |
| Returns the first menu item, same as next(0).
|
|
const Fl_Menu_Item * | first () const |
| Returns the first menu item, same as next(0).
|
|
void | hide () |
| Hides an item in the menu.
|
|
void | image (Fl_Image &a) |
| compatibility api for FLUID, same as a.label(this)
|
|
void | image (Fl_Image *a) |
| compatibility api for FLUID, same as a->label(this)
|
|
int | insert (int, const char *, int, Fl_Callback *, void *=0, int=0) |
| Inserts an item at position index . More...
|
|
const char * | label () const |
| Returns the title of the item. More...
|
|
void | label (const char *a) |
| See const char* Fl_Menu_Item::label() const
|
|
void | label (Fl_Labeltype a, const char *b) |
| See const char* Fl_Menu_Item::label() const
|
|
Fl_Color | labelcolor () const |
| Gets the menu item's label color. More...
|
|
void | labelcolor (Fl_Color a) |
| Sets the menu item's label color. More...
|
|
Fl_Font | labelfont () const |
| Gets the menu item's label font. More...
|
|
void | labelfont (Fl_Font a) |
| Sets the menu item's label font. More...
|
|
Fl_Fontsize | labelsize () const |
| Gets the label font pixel size/height.
|
|
void | labelsize (Fl_Fontsize a) |
| Sets the label font pixel size/height.
|
|
Fl_Labeltype | labeltype () const |
| Returns the menu item's labeltype. More...
|
|
void | labeltype (Fl_Labeltype a) |
| Sets the menu item's labeltype. More...
|
|
int | measure (int *h, const Fl_Menu_ *) const |
| Measures width of label, including effect of & characters. More...
|
|
Fl_Menu_Item * | next (int i=1) |
| Advances a pointer by n items through a menu array, skipping the contents of submenus and invisible items. More...
|
|
const Fl_Menu_Item * | next (int=1) const |
| Advance a pointer by n items through a menu array, skipping the contents of submenus and invisible items. More...
|
|
const Fl_Menu_Item * | popup (int X, int Y, const char *title=0, const Fl_Menu_Item *picked=0, const Fl_Menu_ *=0) const |
| This method is called by widgets that want to display menus. More...
|
|
const Fl_Menu_Item * | pulldown (int X, int Y, int W, int H, const Fl_Menu_Item *picked=0, const Fl_Menu_ *=0, const Fl_Menu_Item *title=0, int menubar=0) const |
| Pulldown() is similar to popup(), but a rectangle is provided to position the menu. More...
|
|
int | radio () const |
| Returns true if this item is a radio item. More...
|
|
void | set () |
| Turns the check or radio item "on" for the menu item. More...
|
|
void | setonly () |
| Turns the radio item "on" for the menu item and turns "off" adjacent radio items set. More...
|
|
int | shortcut () const |
| Gets what key combination shortcut will trigger the menu item.
|
|
void | shortcut (int s) |
| Sets exactly what key combination will trigger the menu item. More...
|
|
void | show () |
| Makes an item visible in the menu.
|
|
int | size () const |
| Size of the menu starting from this menu item. More...
|
|
int | submenu () const |
| Returns true if either FL_SUBMENU or FL_SUBMENU_POINTER is on in the flags. More...
|
|
const Fl_Menu_Item * | test_shortcut () const |
| This is designed to be called by a widgets handle() method in response to a FL_SHORTCUT event. More...
|
|
void | uncheck () |
| back compatibility only More...
|
|
void * | user_data () const |
| Gets the user_data() argument that is sent to the callback function.
|
|
void | user_data (void *v) |
| Sets the user_data() argument that is sent to the callback function.
|
|
int | value () const |
| Returns the current value of the check or radio item. More...
|
|
int | visible () const |
| Gets the visibility of an item.
|
|