#include <ugadgets.hpp>
Inheritance diagram for USpinbox:
Public Member Functions | |
USpinbox (const UArgs &=UArgs::none) | |
standard constructor. | |
USpinbox (UIntg &value, const UArgs &=UArgs::none) | |
USpinbox (UIntg &value, UIntg &increment, const UArgs &=UArgs::none) | |
constructors for specifing a shared 'value' or 'increment'. | |
virtual const UStyle & | getStyle (UContext *) const |
returns the contextual UStyle of this object | |
virtual void | setValue (const UIntg &) |
virtual void | setIncrement (const UIntg &) |
virtual void | setStr (const UStr &) |
UIntg & | value () const |
UIntg & | increment () const |
UStr & | str () const |
direct access to internal fields | |
virtual void | constructs (const UArgs &a) |
virtual void | valueChanged () |
virtual void | updateValue (int dir) |
Static Public Member Functions | |
static const UStyle & | makeStyle () |
creates the Style of this object. | |
Static Public Attributes | |
static UStyle * | style = null |
corresponding Ubit UStyle | |
Friends | |
USpinbox & | uspinbox (const UArgs &a=UArgs::none) |
USpinbox & | uspinbox (UIntg &value, const UArgs &a=UArgs::none) |
creator shortcut that is equivalent to *new USpinbox(). |
|
constructors for specifing a shared 'value' or 'increment'. Arguments 'value' and 'increment':
UAction callbacks are fired when value changes |
|
returns the contextual UStyle of this object This virtual function calls the makeStyle() static function that was redefined for this specific class
Reimplemented from UBox. |
|
creates the Style of this object. This static function is redefined by each class that derives from UGroup. It is called by the virtual function UGroup::getStyle()
Reimplemented from UBox. |
|
direct access to internal fields these objects can be shared by other objects and their value can be changed by clients. They are automatically deleted when the Spinbox is deleted if no uptr points to them. |