Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials

# IGUISpinBox.h

Go to the documentation of this file.

    00001 // Copyright (C) 2006-2010 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         class IGUISpinBox : public IGUIElement
    00018         {
    00019         public:
    00020
    00022                 IGUISpinBox(IGUIEnvironment* environment, IGUIElement* parent,
    00023                                         s32 id, core::rect<s32> rectangle)
    00024                         : IGUIElement(EGUIET_SPIN_BOX, environment, parent, id, rectangle) {}
    00025
    00027                 virtual IGUIEditBox* getEditBox() const = 0;
    00028
    00030
    00031                 virtual void setValue(f32 val) = 0;
    00032
    00034                 virtual f32 getValue() const = 0;
    00035
    00037
    00039                 virtual void setRange(f32 min, f32 max) = 0;
    00040
    00042                 virtual f32 getMin() const = 0;
    00043
    00045                 virtual f32 getMax() const = 0;
    00046
    00048
    00050                 virtual void setStepSize(f32 step=1.f) = 0;
    00051
    00053
    00054                 virtual void setDecimalPlaces(s32 places) = 0;
    00055
    00057                 virtual f32 getStepSize() const = 0;
    00058         };
    00059
    00060
    00061 } // end namespace gui
    00062 } // end namespace irr
    00063
    00064 #endif // __I_GUI_SPIN_BOX_H_INCLUDED__
    00065

| The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Sun Oct 24 12:41:56 2010 by Doxygen (1.6.2)