#include <ubuttons.hpp>
Inheritance diagram for ubit::USpinbox:

Public Member Functions | |
| USpinbox (const UArgs &=UArgs::none) | |
| creates a spin box. | |
| USpinbox (UInteger &value, const UArgs &=UArgs::none) | |
| creates a spin box that is linked to an integer model. | |
| virtual int | getValue () const |
| returns the current value. | |
| virtual void | setValue (int) |
| changes the current value. | |
| UInteger & | value () |
| returns the internal value model. | |
| int | getIncrement () const |
| returns the increment value. | |
| virtual void | setIncrement (int) |
| changes the increment. | |
| UStr & | str () |
| return internal string model of the text. | |
Static Public Member Functions | |
| static UStyle * | createStyle () |
| < important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!). | |
Protected Member Functions | |
| virtual void | constructs (const UArgs &a) |
| virtual void | updateValue (int dir) |
| virtual void | changed () |
Geometry:
Callbacks
| UStyle * ubit::USpinbox::createStyle | ( | ) | [static] |
< important: all subclasses MUST contain this declaration. static function that returns the UStyle of this class (see details!).
this macro defines the UClass that corresponds to this class and:
Reimplemented from ubit::UBox.
| void ubit::USpinbox::setValue | ( | int | ) | [virtual] |
changes the current value.
UOn::change and UOn::action callbacks are fired when the value is changed.
| UStr& ubit::USpinbox::str | ( | ) |
return internal string model of the text.
this object can be shared but can't be deleted.
| UInteger& ubit::USpinbox::value | ( | ) |
returns the internal value model.
UOn::change and UOn::action callbacks are fired when the value is changed. this object can be shared but can't be deleted.
1.4.7