fltk::MenuSection Class Reference

List of all members.

Public Member Functions

ItemGroupgroup () const
 The ItemGroup created by this.
 MenuSection (const char *label, const Symbol *i)
 MenuSection (const char *label=0)
 build a typical submenu group section, then call begin()
 ~MenuSection ()
 call end() at destruction


Detailed 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();
  new Item("in main menu");
  {MenuSection g("submenu title");
    new Item("in submenu");
    new Item("also in submenu");
  } // destructor ends the submenu

Wed Jun 17 08:49:30 2009. FLTK ©2007 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.