|
#include <CButton.h>
Public Member Functions | |
| CSmallButton (CButtonKind kind, CLayoutAlign layoutAlign=CLayoutAlign::RIGHT, const char *label=nullptr) | |
Public Member Functions inherited from sptk::CBaseButton | |
| void | defaultButton (bool defaultBtn) |
| bool | defaultButton () const |
| String | className () const override |
| virtual void | buttonImage (CButtonKind bkind, CIconSize iconSize=CIconSize::IS_LARGE_ICON) |
| virtual void | buttonImage (Fl_Image *image) |
| virtual const Fl_Image * | buttonImage () const |
| const String & | label () const override |
| void | label (const String &lbl) override |
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 |
Additional Inherited Members | |
Protected Member Functions inherited from sptk::CBaseButton | |
| void | image (CButtonKind buttonKind, CIconSize iconSize, String label="") |
| void | draw () override |
| void | drawFocus (bool usingTheme) |
| int | handle (int event) override |
| bool | preferredSize (int &w, int &h) override |
| CBaseButton (CButtonKind kind, CLayoutAlign layoutAlign=CLayoutAlign::RIGHT, bool is_small=false, const char *label=nullptr, CThemeButtonType tbt=THM_BUTTON_NORMAL) | |
| CBaseButton (const char *label=nullptr, CLayoutAlign layoutAlign=CLayoutAlign::RIGHT, CThemeButtonType tbt=THM_BUTTON_NORMAL) | |
Protected Member Functions inherited from sptk::CLayoutClient | |
| int | lastPreferredH () const |
| int | lastPreferredW () const |
| void | lastPreferredH (int height) |
| void | lastPreferredW (int width) |
Protected Attributes inherited from sptk::CLayoutClient | |
| Fl_Widget * | m_widget |
| String | m_name |
| String | m_label |
| CLayoutAlign | m_layoutAlign |
Small button widget
Displays a regular Fl_Image *, or as a stock image of CButtonKind. The button label is ignored
|
inline |
Default constructor in SPTK style
| kind | CButtonKind stock image id |
| layoutAlign | CLayoutAlign widget align in layout |
| label | const char *, label |