Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials
IGUISpinBox.h
Go to the documentation of this file.
1 // Copyright (C) 2006-2010 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 
10 namespace irr
11 {
12 namespace gui
13 {
14  class IGUIEditBox;
15 
17  class IGUISpinBox : public IGUIElement
18  {
19  public:
20 
22  IGUISpinBox(IGUIEnvironment* environment, IGUIElement* parent,
23  s32 id, core::rect<s32> rectangle)
24  : IGUIElement(EGUIET_SPIN_BOX, environment, parent, id, rectangle) {}
25 
27  virtual IGUIEditBox* getEditBox() const = 0;
28 
30 
31  virtual void setValue(f32 val) = 0;
32 
34  virtual f32 getValue() const = 0;
35 
37 
39  virtual void setRange(f32 min, f32 max) = 0;
40 
42  virtual f32 getMin() const = 0;
43 
45  virtual f32 getMax() const = 0;
46 
48 
50  virtual void setStepSize(f32 step=1.f) = 0;
51 
53 
54  virtual void setDecimalPlaces(s32 places) = 0;
55 
57  virtual f32 getStepSize() const = 0;
58  };
59 
60 
61 } // end namespace gui
62 } // end namespace irr
63 
64 #endif // __I_GUI_SPIN_BOX_H_INCLUDED__
65 

The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Tue Jun 5 2012 17:57:12 by Doxygen (1.8.1)