Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials
IGUITabControl.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_TAB_CONTROL_H_INCLUDED__
6 #define __I_GUI_TAB_CONTROL_H_INCLUDED__
7 
8 #include "IGUIElement.h"
9 #include "SColor.h"
10 #include "IGUISkin.h"
11 
12 namespace irr
13 {
14 namespace gui
15 {
17 
18  class IGUITab : public IGUIElement
19  {
20  public:
21 
23  IGUITab(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
24  : IGUIElement(EGUIET_TAB, environment, parent, id, rectangle) {}
25 
27 
28  virtual s32 getNumber() const = 0;
29 
31  virtual void setDrawBackground(bool draw=true) = 0;
32 
34  virtual void setBackgroundColor(video::SColor c) = 0;
35 
37  virtual bool isDrawingBackground() const = 0;
38 
40  virtual video::SColor getBackgroundColor() const = 0;
41 
43  virtual void setTextColor(video::SColor c) = 0;
44 
46  virtual video::SColor getTextColor() const = 0;
47  };
48 
50  class IGUITabControl : public IGUIElement
51  {
52  public:
53 
55  IGUITabControl(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
56  : IGUIElement(EGUIET_TAB_CONTROL, environment, parent, id, rectangle) {}
57 
59  virtual IGUITab* addTab(const wchar_t* caption, s32 id=-1) = 0;
60 
62  virtual s32 getTabCount() const = 0;
63 
65 
68  virtual IGUITab* getTab(s32 idx) const = 0;
69 
71 
73  virtual bool setActiveTab(s32 idx) = 0;
74 
76 
78  virtual bool setActiveTab(IGUIElement *tab) = 0;
79 
81  virtual s32 getActiveTab() const = 0;
82 
84  virtual void setTabHeight( s32 height ) = 0;
85 
87 
88  virtual s32 getTabHeight() const = 0;
89 
91  virtual void setTabMaxWidth(s32 width ) = 0;
92 
94  virtual s32 getTabMaxWidth() const = 0;
95 
97 
98  virtual void setTabVerticalAlignment( gui::EGUI_ALIGNMENT alignment ) = 0;
99 
101 
102  virtual gui::EGUI_ALIGNMENT getTabVerticalAlignment() const = 0;
103 
105  virtual void setTabExtraWidth( s32 extraWidth ) = 0;
106 
108 
109  virtual s32 getTabExtraWidth() const = 0;
110  };
111 
112 
113 } // end namespace gui
114 } // end namespace irr
115 
116 #endif
117 

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)