Loading...
Searching...
No Matches
IGUITabControl.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_GUI_TAB_CONTROL_H_INCLUDED__
#define __I_GUI_TAB_CONTROL_H_INCLUDED__
#include "IGUIElement.h"
#include "SColor.h"
#include "IGUISkin.h"
namespace irr
{
namespace gui
{
class IGUITab : public IGUIElement
{
public:
IGUITab(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
: IGUIElement(EGUIET_TAB, environment, parent, id, rectangle) {}
virtual s32 getNumber() const = 0;
virtual void setDrawBackground(bool draw=true) = 0;
virtual void setBackgroundColor(video::SColor c) = 0;
virtual bool isDrawingBackground() const = 0;
virtual video::SColor getBackgroundColor() const = 0;
virtual void setTextColor(video::SColor c) = 0;
virtual video::SColor getTextColor() const = 0;
};
class IGUITabControl : public IGUIElement
{
public:
IGUITabControl(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
: IGUIElement(EGUIET_TAB_CONTROL, environment, parent, id, rectangle) {}
virtual IGUITab* addTab(const wchar_t* caption, s32 id=-1) = 0;
virtual IGUITab* insertTab(s32 idx, const wchar_t* caption, s32 id=-1) = 0;
virtual void removeTab(s32 idx) = 0;
virtual void clear() = 0;
virtual s32 getTabCount() const = 0;
virtual IGUITab* getTab(s32 idx) const = 0;
virtual bool setActiveTab(s32 idx) = 0;
virtual bool setActiveTab(IGUITab *tab) = 0;
virtual s32 getActiveTab() const = 0;
virtual s32 getTabAt(s32 xpos, s32 ypos) const = 0;
virtual void setTabHeight( s32 height ) = 0;
virtual s32 getTabHeight() const = 0;
virtual void setTabMaxWidth(s32 width ) = 0;
virtual s32 getTabMaxWidth() const = 0;
virtual void setTabVerticalAlignment( gui::EGUI_ALIGNMENT alignment ) = 0;
virtual gui::EGUI_ALIGNMENT getTabVerticalAlignment() const = 0;
virtual void setTabExtraWidth( s32 extraWidth ) = 0;
virtual s32 getTabExtraWidth() const = 0;
};
} // end namespace gui
} // end namespace irr
#endif
IGUIElement.h
IGUISkin.h
SColor.h
irr::core::rect
Rectangle template.
Definition rect.h:27
irr::gui::IGUIElement::draw
virtual void draw()
Draws the element and its children.
Definition IGUIElement.h:312
irr::gui::IGUIElement::IGUIElement
IGUIElement(EGUI_ELEMENT_TYPE type, IGUIEnvironment *environment, IGUIElement *parent, s32 id, const core::rect< s32 > &rectangle)
Constructor.
Definition IGUIElement.h:30
irr::gui::IGUIEnvironment
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.h:71
irr::gui::IGUITabControl::IGUITabControl
IGUITabControl(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUITabControl.h:60
irr::gui::IGUITabControl::removeTab
virtual void removeTab(s32 idx)=0
Removes a tab from the tabcontrol.
irr::gui::IGUITabControl::setActiveTab
virtual bool setActiveTab(s32 idx)=0
Brings a tab to front.
irr::gui::IGUITabControl::getTabVerticalAlignment
virtual gui::EGUI_ALIGNMENT getTabVerticalAlignment() const =0
Get the alignment of the tabs.
irr::gui::IGUITabControl::setTabVerticalAlignment
virtual void setTabVerticalAlignment(gui::EGUI_ALIGNMENT alignment)=0
Set the alignment of the tabs.
irr::gui::IGUITabControl::addTab
virtual IGUITab * addTab(const wchar_t *caption, s32 id=-1)=0
Adds a tab.
irr::gui::IGUITabControl::getTabMaxWidth
virtual s32 getTabMaxWidth() const =0
get the maximal width of a tab
irr::gui::IGUITabControl::insertTab
virtual IGUITab * insertTab(s32 idx, const wchar_t *caption, s32 id=-1)=0
Insert the tab at the given index.
irr::gui::IGUITabControl::setTabMaxWidth
virtual void setTabMaxWidth(s32 width)=0
set the maximal width of a tab. Per default width is 0 which means "no width restriction".
irr::gui::IGUITabControl::getTabCount
virtual s32 getTabCount() const =0
Returns amount of tabs in the tabcontrol.
irr::gui::IGUITabControl::setTabHeight
virtual void setTabHeight(s32 height)=0
Set the height of the tabs.
irr::gui::IGUITabControl::getTab
virtual IGUITab * getTab(s32 idx) const =0
Returns a tab based on zero based index.
irr::gui::IGUITabControl::setTabExtraWidth
virtual void setTabExtraWidth(s32 extraWidth)=0
Set the extra width added to tabs on each side of the text.
irr::gui::IGUITabControl::getTabAt
virtual s32 getTabAt(s32 xpos, s32 ypos) const =0
get the the id of the tab at the given absolute coordinates
irr::gui::IGUITabControl::clear
virtual void clear()=0
Clears the tabcontrol removing all tabs.
irr::gui::IGUITabControl::setActiveTab
virtual bool setActiveTab(IGUITab *tab)=0
Brings a tab to front.
irr::gui::IGUITabControl::getActiveTab
virtual s32 getActiveTab() const =0
Returns which tab is currently active.
irr::gui::IGUITabControl::getTabExtraWidth
virtual s32 getTabExtraWidth() const =0
Get the extra width added to tabs on each side of the text.
irr::gui::IGUITabControl::getTabHeight
virtual s32 getTabHeight() const =0
Get the height of the tabs.
irr::gui::IGUITab
A tab-page, onto which other gui elements could be added.
Definition IGUITabControl.h:19
irr::gui::IGUITab::setDrawBackground
virtual void setDrawBackground(bool draw=true)=0
sets if the tab should draw its background
irr::gui::IGUITab::IGUITab
IGUITab(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUITabControl.h:23
irr::gui::IGUITab::setTextColor
virtual void setTextColor(video::SColor c)=0
sets the color of the text
irr::gui::IGUITab::getTextColor
virtual video::SColor getTextColor() const =0
gets the color of the text
irr::gui::IGUITab::isDrawingBackground
virtual bool isDrawingBackground() const =0
returns true if the tab is drawing its background, false if not
irr::gui::IGUITab::getBackgroundColor
virtual video::SColor getBackgroundColor() const =0
returns the color of the background
irr::gui::IGUITab::setBackgroundColor
virtual void setBackgroundColor(video::SColor c)=0
sets the color of the background, if it should be drawn.
irr::gui::IGUITab::getNumber
virtual s32 getNumber() const =0
Returns zero based index of tab if in tabcontrol.
irr::video::SColor
Class representing a 32 bit ARGB color.
Definition SColor.h:202
irr::gui
The gui namespace contains useful classes for easy creation of a graphical user interface.
Definition EGUIAlignment.h:11
irr::gui::EGUI_ALIGNMENT
EGUI_ALIGNMENT
Definition EGUIAlignment.h:13
irr::gui::EGUIET_TAB
@ EGUIET_TAB
A tab (IGUITab).
Definition EGUIElementTypes.h:71
irr::gui::EGUIET_TAB_CONTROL
@ EGUIET_TAB_CONTROL
A tab control.
Definition EGUIElementTypes.h:74
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0