|
#include <CScroll.h>

Public Member Functions | |
| CScroll (const char *label=0, int layoutSize=10, CLayoutAlign layoutAlign=SP_ALIGN_TOP) | |
| Constructor in SPTK style. | |
| virtual void | resize (int x, int y, int w, int h) |
| Resizes the group and inside widgets. | |
| virtual void | draw () |
| Custom draw() method. | |
| virtual bool | preferredSize (int &w, int &h) |
| Computes the optimal group size. | |
| virtual void | clear () |
| Removes all the child widgets. | |
| virtual void | position (int X, int Y) |
| Sets the position of the scrolled area. | |
| int | xposition () const |
| Returns the x-position of the scrolled area. | |
| int | yposition () const |
| Returns the y-position of the scrolled area. | |
| int | handle (int) |
| Custom handle method. | |
| std::string | label () const |
| Returns the current label. | |
| void | label (const char *lbl) |
| Sets the new label. | |
| void | label (const std::string &lbl) |
| 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. | |
Public Attributes | |
| CScrollBar | scrollbar |
| Vertical scrollbar. | |
| CScrollBar | hscrollbar |
| Horizontal scrollbar. | |
Extended version of FLTK Fl_Group that can be a layout manager and layout client at the same time.
| sptk::CScroll::CScroll | ( | const char * | label = 0, |
|
| int | layoutSize = 10, |
|||
| CLayoutAlign | layoutAlign = SP_ALIGN_TOP | |||
| ) |
Constructor in SPTK style.
| label | const char *, label | |
| layoutSize | int, widget align in layout | |
| layoutAlign | CLayoutAlign, widget align in layout |
| static CLayoutClient* sptk::CScroll::creator | ( | CXmlNode * | node | ) | [static] |
Creates a widget based on the XML node information.
| node | CXmlNode*, an XML node with widget information |
| void sptk::CScroll::label | ( | const std::string & | lbl | ) | [inline] |
Sets label for the group, makes an internal copy of the string
| lbl | const string&, new label |
Reimplemented from sptk::CLayoutClient.
References label().
| void sptk::CScroll::label | ( | const char * | lbl | ) | [inline] |
Sets the new label.
| lbl | const char*, new label |
Reimplemented from sptk::CLayoutClient.
References label().
| virtual bool sptk::CScroll::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::CLayoutClient.
| virtual void sptk::CScroll::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 |