| 
#include <CButton.h>
  
Public Member Functions | |
| CButton (CButtonKind kind, CLayoutAlign layoutAlign=CLayoutAlign::RIGHT, const char *label="", CThemeButtonType tbt=THM_BUTTON_NORMAL) | |
| CButton (const char *label="", CLayoutAlign layoutAlign=CLayoutAlign::RIGHT, CThemeButtonType tbt=THM_BUTTON_NORMAL) | |
| void | load (const std::shared_ptr< xdoc::Node > &node, CLayoutXMLmode xmlMode) override | 
| void | load (const xdoc::SNode &node) override | 
| void | save (const std::shared_ptr< xdoc::Node > &node, CLayoutXMLmode lm=CLayoutXMLmode::LAYOUT) const override | 
  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 | 
Static Public Member Functions | |
| static CLayoutClient * | creator (const xdoc::SNode &node) | 
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 | 
Button widget
Button that displays an a regular Fl_Image *, or as a stock image of CButtonKind.
      
  | 
  inline | 
Constructor in SPTK style
| kind | CButtonKind stock image id | 
| layoutAlign | CLayoutAlign widget align in layout | 
| label | const char * label | 
| tbt | CThemeButtonType, the size type of the button | 
      
  | 
  inline | 
Default constructor in SPTK style
| label | const char * label | 
| layoutAlign | CLayoutAlign widget align in layout | 
| tbt | CThemeButtonType, the button type (size) | 
      
  | 
  static | 
Creates a button based on the XML node information
      
  | 
  inlineoverride | 
Loads layout client information from XML node
Layout information may also include widget size and position, as well as visible() and active() states
| node | the XML node | 
| xmlMode | (ignored) | 
      
  | 
  override | 
Loads the the widget from XML node
The widget information may include widget attributes and widget data
| node | xml::Node*, XML node | 
      
  | 
  overridevirtual | 
Saves the the widget to XML node
The widget information may include widget attributes and widget data
| node | XML node | 
| lm | (ignored) | 
Reimplemented from sptk::CLayoutClient.