| Irrlicht 3D Engine |

IGUISpinBox.h
Go to the documentation of this file.

    00001 // Copyright (C) 2006-2012 Michael Zeilfelder
    00002 // This file is part of the "Irrlicht Engine".
    00003 // For conditions of distribution and use, see copyright notice in irrlicht.h
    00004
    00005 #ifndef __I_GUI_SPIN_BOX_H_INCLUDED__
    00006 #define __I_GUI_SPIN_BOX_H_INCLUDED__
    00007
    00008 #include "IGUIElement.h"
    00009
    00010 namespace irr
    00011 {
    00012 namespace gui
    00013 {
    00014     class IGUIEditBox;
    00015
    00017
    00020     class IGUISpinBox : public IGUIElement
    00021     {
    00022     public:
    00023
    00025         IGUISpinBox(IGUIEnvironment* environment, IGUIElement* parent,
    00026                     s32 id, core::rect<s32> rectangle)
    00027             : IGUIElement(EGUIET_SPIN_BOX, environment, parent, id, rectangle) {}
    00028
    00030         virtual IGUIEditBox* getEditBox() const = 0;
    00031
    00033
    00034         virtual void setValue(f32 val) = 0;
    00035
    00037         virtual f32 getValue() const = 0;
    00038
    00040
    00042         virtual void setRange(f32 min, f32 max) = 0;
    00043
    00045         virtual f32 getMin() const = 0;
    00046
    00048         virtual f32 getMax() const = 0;
    00049
    00051
    00053         virtual void setStepSize(f32 step=1.f) = 0;
    00054
    00057
    00058         virtual void setDecimalPlaces(s32 places) = 0;
    00059
    00061         virtual f32 getStepSize() const = 0;
    00062     };
    00063
    00064
    00065 } // end namespace gui
    00066 } // end namespace irr
    00067
    00068 #endif // __I_GUI_SPIN_BOX_H_INCLUDED__
    00069