Loading...
Searching...
No Matches
IGUISpinBox.h
Go to the documentation of this file.
// Copyright (C) 2006-2012 Michael Zeilfelder
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_GUI_SPIN_BOX_H_INCLUDED__
#define __I_GUI_SPIN_BOX_H_INCLUDED__
#include "IGUIElement.h"
namespace irr
{
namespace gui
{
class IGUIEditBox;
class IGUISpinBox : public IGUIElement
{
public:
IGUISpinBox(IGUIEnvironment* environment, IGUIElement* parent,
s32 id, core::rect<s32> rectangle)
: IGUIElement(EGUIET_SPIN_BOX, environment, parent, id, rectangle) {}
virtual IGUIEditBox* getEditBox() const = 0;
virtual void setValue(f32 val) = 0;
virtual f32 getValue() const = 0;
virtual void setRange(f32 min, f32 max) = 0;
virtual f32 getMin() const = 0;
virtual f32 getMax() const = 0;
virtual void setStepSize(f32 step=1.f) = 0;
virtual void setDecimalPlaces(s32 places) = 0;
virtual f32 getStepSize() const = 0;
};
} // end namespace gui
} // end namespace irr
#endif // __I_GUI_SPIN_BOX_H_INCLUDED__
IGUIElement.h
irr::core::rect
Rectangle template.
Definition rect.h:27
irr::gui::IGUIEditBox
Single line edit box for editing simple text.
Definition IGUIEditBox.h:24
irr::gui::IGUIElement::IGUIElement
IGUIElement(EGUI_ELEMENT_TYPE type, IGUIEnvironment *environment, IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle)
Constructor.
Definition IGUIElement.h:30
irr::gui::IGUIEnvironment
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.h:71
irr::gui::IGUISpinBox::getMin
virtual f32 getMin() const =0
get the minimum value which can be used in the spinbox
irr::gui::IGUISpinBox::setValue
virtual void setValue(f32 val)=0
set the current value of the spinbox
irr::gui::IGUISpinBox::getStepSize
virtual f32 getStepSize() const =0
get the current step size
irr::gui::IGUISpinBox::getEditBox
virtual IGUIEditBox * getEditBox() const =0
Access the edit box used in the spin control.
irr::gui::IGUISpinBox::setStepSize
virtual void setStepSize(f32 step=1.f)=0
Step size by which values are changed when pressing the spinbuttons.
irr::gui::IGUISpinBox::setDecimalPlaces
virtual void setDecimalPlaces(s32 places)=0
irr::gui::IGUISpinBox::IGUISpinBox
IGUISpinBox(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUISpinBox.h:25
irr::gui::IGUISpinBox::getValue
virtual f32 getValue() const =0
Get the current value of the spinbox.
irr::gui::IGUISpinBox::getMax
virtual f32 getMax() const =0
get the maximum value which can be used in the spinbox
irr::gui::IGUISpinBox::setRange
virtual void setRange(f32 min, f32 max)=0
set the range of values which can be used in the spinbox
irr::gui
The gui namespace contains useful classes for easy creation of a graphical user interface.
Definition EGUIAlignment.h:11
irr::gui::EGUIET_SPIN_BOX
@ EGUIET_SPIN_BOX
A spin box (IGUISpinBox).
Definition EGUIElementTypes.h:65
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::f32
float f32
32 bit floating point variable.
Definition irrTypes.h:104
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0