Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials
IGUIComboBox.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2010 Nikolaus Gebhardt
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_COMBO_BOX_H_INCLUDED__
6 #define __I_GUI_COMBO_BOX_H_INCLUDED__
7 
8 #include "IGUIElement.h"
9 
10 namespace irr
11 {
12 namespace gui
13 {
14 
16  class IGUIComboBox : public IGUIElement
17  {
18  public:
19 
21  IGUIComboBox(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
22  : IGUIElement(EGUIET_COMBO_BOX, environment, parent, id, rectangle) {}
23 
25  virtual u32 getItemCount() const = 0;
26 
28  virtual const wchar_t* getItem(u32 idx) const = 0;
29 
31  virtual u32 getItemData(u32 idx) const = 0;
32 
34  virtual s32 getIndexForItemData(u32 data ) const = 0;
35 
37  virtual u32 addItem(const wchar_t* text, u32 data = 0) = 0;
38 
40 
41  virtual void removeItem(u32 idx) = 0;
42 
44  virtual void clear() = 0;
45 
47  virtual s32 getSelected() const = 0;
48 
50  virtual void setSelected(s32 idx) = 0;
51 
53 
57  virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical) = 0;
58  };
59 
60 
61 } // end namespace gui
62 } // end namespace irr
63 
64 #endif
65 

The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Fri Mar 21 2014 04:40:16 by Doxygen (1.8.1.2)