|
#include <CMenuBar.h>

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 CLayoutClient * | creator (CXmlNode *node) |
| Creates a widget based on the XML node information. | |
Extended version of FLTK's standard Fl_Menu_Bar. Added the CLayoutClient interface and preferred size computations.
| static CLayoutClient* sptk::CMenuBar::creator | ( | CXmlNode * | node | ) | [inline, static] |
Creates a widget based on the XML node information.
| 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
| 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.