Irrlicht 3D Engine
 
Loading...
Searching...
No Matches
IGUISpinBox.h
Go to the documentation of this file.
1// Copyright (C) 2006-2012 Michael Zeilfelder
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in irrlicht.h
4
5#ifndef __I_GUI_SPIN_BOX_H_INCLUDED__
6#define __I_GUI_SPIN_BOX_H_INCLUDED__
7
8#include "IGUIElement.h"
9
10namespace irr
11{
12namespace gui
13{
14 class IGUIEditBox;
15
17
20 class IGUISpinBox : public IGUIElement
21 {
22 public:
23
26 s32 id, core::rect<s32> rectangle)
27 : IGUIElement(EGUIET_SPIN_BOX, environment, parent, id, rectangle) {}
28
30 virtual IGUIEditBox* getEditBox() const = 0;
31
33
34 virtual void setValue(f32 val) = 0;
35
37 virtual f32 getValue() const = 0;
38
40
42 virtual void setRange(f32 min, f32 max) = 0;
43
45 virtual f32 getMin() const = 0;
46
48 virtual f32 getMax() const = 0;
49
51
53 virtual void setStepSize(f32 step=1.f) = 0;
54
57
58 virtual void setDecimalPlaces(s32 places) = 0;
59
61 virtual f32 getStepSize() const = 0;
62 };
63
64
65} // end namespace gui
66} // end namespace irr
67
68#endif // __I_GUI_SPIN_BOX_H_INCLUDED__
69
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.h:22
Single line edit box for editing simple text.
Definition IGUIEditBox.h:24
Base class of all GUI elements.
Definition IGUIElement.h:26
GUI Environment. Used as factory and manager of all other GUI elements.
Single line edit box + spin buttons.
Definition IGUISpinBox.h:21
virtual f32 getMin() const =0
get the minimum value which can be used in the spinbox
virtual void setValue(f32 val)=0
set the current value of the spinbox
virtual f32 getStepSize() const =0
get the current step size
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 setDecimalPlaces(s32 places)=0
IGUISpinBox(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUISpinBox.h:25
virtual f32 getValue() const =0
Get the current value of the spinbox.
virtual f32 getMax() const =0
get the maximum value which can be used in the spinbox
virtual void setRange(f32 min, f32 max)=0
set the range of values which can be used in the spinbox
@ EGUIET_SPIN_BOX
A spin box (IGUISpinBox)
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
float f32
32 bit floating point variable.
Definition irrTypes.h:104
signed int s32
32 bit signed variable.
Definition irrTypes.h:66