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.
Because this is an fltk::Menu subclass, you can also call popup() and add() and other methods to manipulate the items inside it.
In a Browser, the value() indicates if the widget is open or not. In a MultiBrowser, the selected() indicates if the widget is currently selected.
Public Member Functions | |
void | draw () |
int | handle (int) |
ItemGroup (const char *label, const Symbol *, bool begin=false) | |
ItemGroup (const char *label=0, bool begin=false) | |
void | layout () |
|
Unlike other widgets the constructor does not take any dimensions, since it is assummed the container widget will size this correctly. |
|
This constructor also sets image(). |
|
Returns 0 always. Items do not accept any events. Any results of clicking on them is handled by the parent Menu or Browser. Reimplemented from fltk::Group. |