class fltk::ItemGroup


Class Hierarchy

fltk::Menu
   |
   +----fltk::ItemGroup

Include Files

#include <fltk/ItemGroup.h>

Description

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.

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 multi-browser, the selected() indicates if the widget is currently selected.

Methods

fltk::ItemGroup::ItemGroup(const char * = 0)

Unlike other widgets the constructor does not take any dimensions, since it is assummed the container widget will size this correctly.

fltk::ItemGroup::~ItemGroup(void)