|
The check button. More...
#include <CCheckButtons.h>
Public Member Functions | |
| CCheckButton (const char *label, int layoutSize, CLayoutAlign layoutAlignment) | |
| int | handle (int event) override |
| bool | preferredSize (int &w, int &h) 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 |
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 |
The check button.
Implements the SPTK check button that understands and reports its size requirements, and can be a layout client.
|
inline |
SPTK-style constructor
| label | const char *, the widget label |
| layoutSize | int, the size of widget in layout |
| layoutAlignment | CLayoutAlign, widget align in the layout |
|
overrideprotected |
Draws the check button
|
override |
A special handle method. See FLTK Fl_Widget::handle() for more information.
| event | int, FLTK event type |
|
overridevirtual |
Reports the preferred size of the widget based on offered size.
| w | int, input/output desirable widget width |
| h | int, input/output desirable widget heigth |
Reimplemented from sptk::CLayoutClient.