Sanko Robinson > FLTK > FLTK::MenuSection

Download:
FLTK-0.532009.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.532006   Source  

NAME ^

FLTK::MenuSection - Makes dynamic (& hand-made) menu code less painful

Description ^

This class will elegantly facilitate dynamic (& hand-made) menu code writing by creating and calling begin() on an ItemGroup in the constructor and calling end() in the destructor:

  $mymenu->begin( );
  my $mnuMain = FLTK::ItemGroup->new('in main menu');
  {
    my $mnuMainSub = FLTK::MenuSection->new('submenu title');
    FLTK::Item->new('in submenu');
    FLTK::Item->new('also in submenu');
  } # destructor ends the submenu

Functions ^

group

my $group = $menusection->group( );

Returns the ItemGroup|FLTK::ItemGroup> created by this.

new

my $group = $menusection->new( $label );

Builds a typical submenu group section, then calls begin().

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

This constructor also sets image().

Author ^

Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/

License and Legal ^

Copyright (C) 2008-2010 by Sanko Robinson <sanko@cpan.org>

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: