sptk2 logo
SPTK Home Page

sptk::CMenuBar Class Reference
[GUI Classes]

Menu bar. More...

#include <CMenuBar.h>

Inheritance diagram for sptk::CMenuBar:

sptk::CLayoutClient

List of all members.

Public Member Functions

 CMenuBar ()
 Default constructor.
virtual bool preferredSize (int &w, int &h)
virtual std::string className () const
 Returns widget class name (internal SPTK RTTI).

Static Public Member Functions

static CLayoutClientcreator (CXmlNode *node)
 Creates a widget based on the XML node information.


Detailed Description

Menu bar.

Extended version of FLTK's standard Fl_Menu_Bar. Added the CLayoutClient interface and preferred size computations.


Member Function Documentation

static CLayoutClient* sptk::CMenuBar::creator ( CXmlNode node  )  [inline, static]

Creates a widget based on the XML node information.

Parameters:
node CXmlNode*, an XML node with widget information

References sptk::CLayoutClient::load(), sptk::LXM_LAYOUTDATA, and sptk::CLayoutClient::widget().

virtual bool sptk::CMenuBar::preferredSize ( int &  w,
int &  h 
) [inline, virtual]

Computes the optimal menu size

Parameters:
w int&, input - width offered by the program, output - width required by widget
h int&, input - height offered by the program, output - height required by widget

Reimplemented from sptk::CLayoutClient.


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

Mon Mar 5 11:56:16 2012: SPTK 3.5.7