ItemGroup Class Reference

Inherits Menu.

List of all members.

Public Member Functions

void draw ()
void layout ()
int handle (int)
 ItemGroup (const char *label=0, bool begin=false)
 ItemGroup (const char *label, const Symbol *, bool begin=false)


Detailed Description

This widget describes a set of items that are to be put inside a Menu or 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 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 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.


Constructor & Destructor Documentation

ItemGroup::ItemGroup const char *  l = 0,
bool  begin = false
 

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,
bool  begin = false
 

This constructor also sets image().


Member Function Documentation

int ItemGroup::handle int   )  [virtual]
 

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 Group.


The documentation for this class was generated from the following files:
Sun Jan 7 00:55:17 2007. FLTK ©2006 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.