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

IGUIComboBox.h

Go to the documentation of this file.
00001 // Copyright (C) 2002-2010 Nikolaus Gebhardt
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_COMBO_BOX_H_INCLUDED__
00006 #define __I_GUI_COMBO_BOX_H_INCLUDED__
00007 
00008 #include "IGUIElement.h"
00009 
00010 namespace irr
00011 {
00012 namespace gui
00013 {
00014 
00016         class IGUIComboBox : public IGUIElement
00017         {
00018         public:
00019 
00021                 IGUIComboBox(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
00022                         : IGUIElement(EGUIET_COMBO_BOX, environment, parent, id, rectangle) {}
00023 
00025                 virtual u32 getItemCount() const = 0;
00026 
00028                 virtual const wchar_t* getItem(u32 idx) const = 0;
00029 
00031                 virtual u32 getItemData(u32 idx) const = 0;
00032 
00034                 virtual s32 getIndexForItemData(u32 data ) const = 0;
00035 
00037                 virtual u32 addItem(const wchar_t* text, u32 data = 0) = 0;
00038 
00040 
00041                 virtual void removeItem(u32 idx) = 0;
00042 
00044                 virtual void clear() = 0;
00045 
00047                 virtual s32 getSelected() const = 0;
00048 
00050                 virtual void setSelected(s32 idx) = 0;
00051 
00053 
00057                 virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) = 0;
00058         };
00059 
00060 
00061 } // end namespace gui
00062 } // end namespace irr
00063 
00064 #endif
00065 

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