5#ifndef JPP_I_GUI_SPIN_BOX_HPP_INCLUDED
6#define JPP_I_GUI_SPIN_BOX_HPP_INCLUDED
8#include <jimcpp/core/engine/IGUIElement.hpp>
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.hpp:22
Single line edit box for editing simple text.
Definition IGUIEditBox.hpp:24
Base class of all GUI elements.
Definition IGUIElement.hpp:24
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.hpp:73
Single line edit box + spin buttons.
Definition IGUISpinBox.hpp:36
virtual IGUIEditBox * getEditBox() const =0
Access the edit box used in the spin control.
virtual void setStepSize(f32 step=1.f)=0
Step size by which values are changed when pressing the spinbuttons.
virtual void setValidateOn(u32 validateOn)=0
Sets when the spinbox has to validate entered text.
virtual f32 getOldValue() const =0
Gets previous value in EGET_SPINBOX_CHANGED events.
virtual u32 getValidateOn() const =0
Gets when the spinbox has to validate entered text.
virtual f32 getValueFor(const wchar_t *text) const =0
Get the value the spinbox would have for the given text.
virtual void setRange(f32 min, f32 max)=0
set the range of values which can be used in the spinbox
virtual f32 getMin() const =0
get the minimum value which can be used in the spinbox
virtual f32 getMax() const =0
get the maximum value which can be used in the spinbox
virtual void setDecimalPlaces(s32 places)=0
virtual void setValue(f32 val)=0
set the current value of the spinbox
virtual f32 getValue() const =0
Get the current value of the spinbox.
virtual f32 getStepSize() const =0
get the current step size
IGUISpinBox(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUISpinBox.hpp:40
@ EGUIET_SPIN_BOX
A spin box (IGUISpinBox)
Definition EGUIElementTypes.hpp:65
EGUI_SPINBOX_VALIDATION
Definition IGUISpinBox.hpp:19
@ EGUI_SBV_NEVER
Does not validate typed text, probably a bad idea setting this usually.
Definition IGUISpinBox.hpp:21
@ EGUI_SBV_ENTER
Validate when enter was pressed.
Definition IGUISpinBox.hpp:25
@ EGUI_SBV_LOSE_FOCUS
Validate when the editbox loses the focus.
Definition IGUISpinBox.hpp:27
@ EGUI_SBV_CHANGE
Validate on each change. Was default up to Jimcpp 1.8.
Definition IGUISpinBox.hpp:23
As of Jimcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.hpp:64
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110