5 #ifndef __I_GUI_TAB_CONTROL_H_INCLUDED__ 6 #define __I_GUI_TAB_CONTROL_H_INCLUDED__ 64 virtual IGUITab* addTab(
const wchar_t* caption,
s32 id=-1) = 0;
68 virtual IGUITab* insertTab(
s32 idx,
const wchar_t* caption,
s32 id=-1) = 0;
71 virtual void removeTab(
s32 idx) = 0;
74 virtual void clear() = 0;
77 virtual s32 getTabCount()
const = 0;
88 virtual bool setActiveTab(
s32 idx) = 0;
93 virtual bool setActiveTab(
IGUITab *tab) = 0;
96 virtual s32 getActiveTab()
const = 0;
100 virtual s32 getTabAt(
s32 xpos,
s32 ypos)
const = 0;
103 virtual void setTabHeight(
s32 height ) = 0;
107 virtual s32 getTabHeight()
const = 0;
110 virtual void setTabMaxWidth(
s32 width ) = 0;
113 virtual s32 getTabMaxWidth()
const = 0;
124 virtual void setTabExtraWidth(
s32 extraWidth ) = 0;
128 virtual s32 getTabExtraWidth()
const = 0;
virtual video::SColor getTextColor() const =0
gets the color of the text
IGUITab(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Everything in the Irrlicht Engine can be found in this namespace.
GUI Environment. Used as factory and manager of all other GUI elements.
A tab-page, onto which other gui elements could be added.
virtual video::SColor getBackgroundColor() const =0
returns the color of the background
signed int s32
32 bit signed variable.
virtual void draw()
Draws the element and its children.
IGUITabControl(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
virtual void setTextColor(video::SColor c)=0
sets the color of the text
Class representing a 32 bit ARGB color.
Base class of all GUI elements.
virtual s32 getNumber() const =0
Returns zero based index of tab if in tabcontrol.
virtual bool isDrawingBackground() const =0
returns true if the tab is drawing its background, false if not
virtual void setBackgroundColor(video::SColor c)=0
sets the color of the background, if it should be drawn.
virtual void setDrawBackground(bool draw=true)=0
sets if the tab should draw its background