Sanko Robinson > FLTK-0.532009 > FLTK::ItemGroup



Annotate this POD


View/Report Bugs
Module Version: 0.532006   Source  


FLTK::ItemGroup - Widget designed to be a nested list in a menu or browser

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

Functions ^


my $group = $itemgroup->new( $label, $begin );

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

my $group = $itemgroup->new( $label, $symbol, $begin );

This constructor also sets image().

Author ^

Sanko Robinson <> -

License and Legal ^

Copyright (C) 2008-2010 by Sanko Robinson <>

This program is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0. See the LICENSE file included with this distribution or notes on the Artistic License 2.0 for clarification.

When separated from the distribution, all original POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See the clarification of the CCA-SA3.0.

syntax highlighting: