#include <ugadgets.hpp>
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 |
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 () |
Static Public Attributes | |
static UStyle * | style = null |
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 |
|
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. |