5#ifndef __I_GUI_TAB_CONTROL_H_INCLUDED__
6#define __I_GUI_TAB_CONTROL_H_INCLUDED__
Axis aligned bounding box in 3d dimensional space.
Base class of all GUI elements.
virtual void draw()
Draws the element and its children.
GUI Environment. Used as factory and manager of all other GUI elements.
IGUITabControl(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
virtual void removeTab(s32 idx)=0
Removes a tab from the tabcontrol.
virtual bool setActiveTab(s32 idx)=0
Brings a tab to front.
virtual gui::EGUI_ALIGNMENT getTabVerticalAlignment() const =0
Get the alignment of the tabs.
virtual void setTabVerticalAlignment(gui::EGUI_ALIGNMENT alignment)=0
Set the alignment of the tabs.
virtual IGUITab * addTab(const wchar_t *caption, s32 id=-1)=0
Adds a tab.
virtual s32 getTabMaxWidth() const =0
get the maximal width of a tab
virtual IGUITab * insertTab(s32 idx, const wchar_t *caption, s32 id=-1)=0
Insert the tab at the given index.
virtual void setTabMaxWidth(s32 width)=0
set the maximal width of a tab. Per default width is 0 which means "no width restriction".
virtual s32 getTabCount() const =0
Returns amount of tabs in the tabcontrol.
virtual void setTabHeight(s32 height)=0
Set the height of the tabs.
virtual IGUITab * getTab(s32 idx) const =0
Returns a tab based on zero based index.
virtual void setTabExtraWidth(s32 extraWidth)=0
Set the extra width added to tabs on each side of the text.
virtual s32 getTabAt(s32 xpos, s32 ypos) const =0
get the the id of the tab at the given absolute coordinates
virtual void clear()=0
Clears the tabcontrol removing all tabs.
virtual bool setActiveTab(IGUITab *tab)=0
Brings a tab to front.
virtual s32 getActiveTab() const =0
Returns which tab is currently active.
virtual s32 getTabExtraWidth() const =0
Get the extra width added to tabs on each side of the text.
virtual s32 getTabHeight() const =0
Get the height of the tabs.
A tab-page, onto which other gui elements could be added.
virtual void setDrawBackground(bool draw=true)=0
sets if the tab should draw its background
IGUITab(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
virtual void setTextColor(video::SColor c)=0
sets the color of the text
virtual video::SColor getTextColor() const =0
gets the color of the text
virtual bool isDrawingBackground() const =0
returns true if the tab is drawing its background, false if not
virtual video::SColor getBackgroundColor() const =0
returns the color of the background
virtual void setBackgroundColor(video::SColor c)=0
sets the color of the background, if it should be drawn.
virtual s32 getNumber() const =0
Returns zero based index of tab if in tabcontrol.
Class representing a 32 bit ARGB color.
@ EGUIET_TAB
A tab (IGUITab)
@ EGUIET_TAB_CONTROL
A tab control.
Everything in the Irrlicht Engine can be found in this namespace.
signed int s32
32 bit signed variable.