Wt
3.2.0
|
An input control for integer numbers. More...
#include <Wt/WSpinBox>
Public Member Functions | |
WSpinBox (WContainerWidget *parent=0) | |
Creates a spin-box. | |
void | setMinimum (int minimum) |
Sets the minimum value. | |
int | minimum () const |
Returns the minimum value. | |
void | setMaximum (int maximum) |
Sets the maximum value. | |
int | maximum () const |
Returns the maximum value. | |
void | setRange (int minimum, int maximum) |
Sets the range. | |
void | setSingleStep (int step) |
Sets the step value. | |
int | singleStep () const |
Returns the step value. | |
void | setValue (int value) |
Sets the value. | |
int | value () const |
Returns the value. | |
Signal< int > & | valueChanged () |
A signal that indicates when the value has changed. |
An input control for integer numbers.
The spin box provides a control for entering an integer number. It consists of a line edit, and buttons which allow to increase or decrease the value. If you rather need input of a fractional number, use WDoubleSpinBox instead.
WSpinBox is an inline widget.
See WAbstractSpinBox.
Wt::WSpinBox::WSpinBox | ( | WContainerWidget * | parent = 0 | ) |
Creates a spin-box.
The range is (0 - 99) and the step size 1.
The initial value is 0.
int Wt::WSpinBox::maximum | ( | ) | const |
Returns the maximum value.
int Wt::WSpinBox::minimum | ( | ) | const |
Returns the minimum value.
void Wt::WSpinBox::setMaximum | ( | int | maximum | ) |
Sets the maximum value.
The default value is 99.
void Wt::WSpinBox::setMinimum | ( | int | minimum | ) |
Sets the minimum value.
The default value is 0.
void Wt::WSpinBox::setRange | ( | int | minimum, |
int | maximum | ||
) |
Sets the range.
void Wt::WSpinBox::setSingleStep | ( | int | step | ) |
Sets the step value.
The default value is 1.
void Wt::WSpinBox::setValue | ( | int | value | ) |
Signal<int>& Wt::WSpinBox::valueChanged | ( | ) |
A signal that indicates when the value has changed.
This signal is emitted when setValue() is called.