|ItemGroup (const char *label=0, bool begin=false)|
|ItemGroup (const char *label, const Symbol *, bool begin=false)|
This widget describes a set of items that are to be put inside a fltk::Menu or fltk::Browser widget. It indicates the title of a submenu, or a level of hierarchy in the browser. Any child widgets are the items in that submenu, or the items under this parent in the browser.
If this widget is told to draw, it draws just like fltk::Item draws. See that for more details. The triangle indicating a submenu is not drawn by this, it is drawn by the parent menu.
|ItemGroup::ItemGroup||(||const char *||l =
Unlike other widgets the constructor does not take any dimensions, since it is assummed the container widget will size this correctly.
|ItemGroup::ItemGroup||(||const char *||l,|
|const Symbol *||i,|
This constructor also sets image().
Fltk calls this virtual function to draw the widget, after setting up the graphics (current window, xy translation, etc) so that any drawing functions will go into this widget.
User code should not call this! You probably want to call redraw().
The default version calls draw_box() and draw_label(), thus drawing the box() to fill the widget and putting the label() and image() inside it to fill it, unless the align() flags are set to put it outside.
Information on how to write your own version is here.
Reimplemented from fltk::Group.
Does nothing. This avoids wasting time measuring all the menu items.
Reimplemented from fltk::Menu.