fltk::MenuSection Class Reference

#include <ItemGroup.h>

List of all members.

Public Member Functions

ItemGroupgroup () const
 The ItemGroup created by this.
 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:

  new Item("in main menu");
  {MenuSection g("submenu title");
    new Item("in submenu");
    new Item("also in submenu");
  } // destructor ends the submenu

The documentation for this class was generated from the following file: