Single line edit box + spin buttons. More...
#include <IGUISpinBox.h>
Single line edit box + spin buttons.
Definition at line 20 of file IGUISpinBox.h.
irr::gui::IGUISpinBox::IGUISpinBox | ( | IGUIEnvironment * | environment, |
IGUIElement * | parent, | ||
s32 | id, | ||
core::rect< s32 > | rectangle | ||
) | [inline] |
constructor
Definition at line 25 of file IGUISpinBox.h.
virtual IGUIEditBox* irr::gui::IGUISpinBox::getEditBox | ( | ) | const [pure virtual] |
Access the edit box used in the spin control.
virtual f32 irr::gui::IGUISpinBox::getMax | ( | ) | const [pure virtual] |
get the maximum value which can be used in the spinbox
virtual f32 irr::gui::IGUISpinBox::getMin | ( | ) | const [pure virtual] |
get the minimum value which can be used in the spinbox
virtual f32 irr::gui::IGUISpinBox::getStepSize | ( | ) | const [pure virtual] |
get the current step size
virtual f32 irr::gui::IGUISpinBox::getValue | ( | ) | const [pure virtual] |
Get the current value of the spinbox.
virtual void irr::gui::IGUISpinBox::setDecimalPlaces | ( | s32 | places | ) | [pure virtual] |
Sets the number of decimal places to display. Note that this also rounds the range to the same number of decimal places.
places,: | The number of decimal places to display, use -1 to reset |
set the range of values which can be used in the spinbox
min,: | minimum value |
max,: | maximum value |
virtual void irr::gui::IGUISpinBox::setStepSize | ( | f32 | step = 1.f | ) | [pure virtual] |
Step size by which values are changed when pressing the spinbuttons.
The step size also determines the number of decimal places to display
step,: | stepsize used for value changes when pressing spinbuttons |
virtual void irr::gui::IGUISpinBox::setValue | ( | f32 | val | ) | [pure virtual] |
set the current value of the spinbox
val,: | value to be set in the spinbox |