|
#include <CToolBar.h>

Public Member Functions | |
| CToolBar (CLayoutAlign layoutAlign=SP_ALIGN_TOP) | |
| Constructor in SPTK style. | |
| CButton * | addButton (CButtonKind buttonKind, Fl_Callback_p cb, const char *label=0, CLayoutAlign buttonAlign=SP_ALIGN_LEFT) |
| Creates and adds a new button to the toolbar. | |
| virtual void | resize (int x, int y, int w, int h) |
| Resizes the group and inside widgets. | |
| virtual bool | preferredSize (int &w, int &h) |
| Computes the optimal group size. | |
| bool | collapsed () const |
| Flag, true if the toolbar is collapsed. | |
| int | handle (int) |
| Special handle() function. | |
| void | draw () |
| Draws the toolbar. | |
| 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. | |
The slightely extended CGroup to work as a toolbar. Most of the toolbar functionality isn't implemented yet.
| sptk::CToolBar::CToolBar | ( | CLayoutAlign | layoutAlign = SP_ALIGN_TOP |
) |
Constructor in SPTK style.
| layoutAlign | CLayoutAlign, widget align in layout |
| CButton* sptk::CToolBar::addButton | ( | CButtonKind | buttonKind, | |
| Fl_Callback_p | cb, | |||
| const char * | label = 0, |
|||
| CLayoutAlign | buttonAlign = SP_ALIGN_LEFT | |||
| ) |
Creates and adds a new button to the toolbar.
| buttonKind | CButtonKind, button type | |
| cb | Fl_Callback_p, button callback | |
| label | const char *, button label | |
| buttonAlign | CLayoutAlign, button align in the toolbar |
| static CLayoutClient* sptk::CToolBar::creator | ( | CXmlNode * | node | ) | [static] |
Creates a widget based on the XML node information.
| node | CXmlNode*, an XML node with widget information |
Reimplemented from sptk::CGroup.
| virtual bool sptk::CToolBar::preferredSize | ( | int & | w, | |
| int & | h | |||
| ) | [virtual] |
Computes the optimal group 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::CGroup.
| virtual void sptk::CToolBar::resize | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) | [virtual] |
Resizes the group and inside widgets.
| x | int, x-position | |
| y | int, y-position | |
| w | int, width | |
| h | int, height |
Reimplemented from sptk::CGroup.