|
#include <CScrollBar.h>
Public Member Functions | |
| CScrollBar (int layoutSize=16, CLayoutAlign layoutAlign=CLayoutAlign::RIGHT) | |
| CScrollBar (int x, int y, int w, int h) | |
| bool | preferredSize (int &w, int &h) override |
| int | handle (int event) override |
| String | className () const override |
| Returns widget class name (internal SPTK RTTI). More... | |
Public Member Functions inherited from sptk::CLayoutClient | |
| CLayoutClient (Fl_Widget *widget, int layoutSize, CLayoutAlign ca) | |
| virtual | ~CLayoutClient () |
| CLayoutAlign | layoutAlign () const |
| void | layoutAlign (CLayoutAlign al) |
| int | layoutSize () const |
| void | layoutSize (int ls) |
| virtual void | label (const String &l) |
| virtual const String & | label () const |
| void | name (const char *aname) |
| void | name (const String &aname) |
| const String & | name () const |
| virtual bool | preferredSize (int &w, int &h) |
| virtual bool | computeSize (int &w, int &h) |
| virtual String | className () const |
| Fl_Widget * | widget () const |
| virtual void | load (const xdoc::SNode &node, CLayoutXMLmode xmlMode) |
| virtual void | load (const std::shared_ptr< xdoc::Node > &node) |
| virtual void | save (const std::shared_ptr< xdoc::Node > &node, CLayoutXMLmode xmlMode) const |
Protected Member Functions | |
| void | draw () override |
Protected Member Functions inherited from sptk::CLayoutClient | |
| int | lastPreferredH () const |
| int | lastPreferredW () const |
| void | lastPreferredH (int height) |
| void | lastPreferredW (int width) |
Additional Inherited Members | |
Protected Attributes inherited from sptk::CLayoutClient | |
| Fl_Widget * | m_widget |
| String | m_name |
| String | m_label |
| CLayoutAlign | m_layoutAlign |
Extended version of Scroll Bar - to add theme support
|
inline |
Constructor in SPTK style
| layoutSize | int, widget align in layout |
| layoutAlign | CLayoutAlign, widget align in layout |
|
inline |
Constructor in FLTK style
| x | int, x-position |
| y | int, y-position |
| w | int, width |
| h | int, height |
References NONE.
|
inlineoverridevirtual |
Returns widget class name (internal SPTK RTTI).
Reimplemented from sptk::CLayoutClient.
|
overrideprotected |
Custom draw method to support SPTK themes
|
override |
Custom handle() method - event processing
|
overridevirtual |
Computes the optimal progress bar 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.