MenuSection Class Reference

List of all members.

Public Member Functions

 MenuSection (const char *label=0)
 MenuSection (const char *label, const Symbol *i)
 ~MenuSection ()
ItemGroupgroup () const

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


Constructor & Destructor Documentation

MenuSection::MenuSection const char *  label = 0  )  [inline]
 

build a typical submenu group section, then call begin()

MenuSection::~MenuSection  )  [inline]
 

call end() at destruction


Member Function Documentation

ItemGroup* MenuSection::group  )  const [inline]
 

The ItemGroup created by this.


The documentation for this class was generated from the following file:
Sun Jan 7 00:55:18 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.