Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members

IGUITabControl.h

Go to the documentation of this file.
00001 // Copyright (C) 2002-2008 Nikolaus Gebhardt
00002 // This file is part of the "Irrlicht Engine".
00003 // For conditions of distribution and use, see copyright notice in irrlicht.h
00004 
00005 #ifndef __I_GUI_TAB_CONTROL_H_INCLUDED__
00006 #define __I_GUI_TAB_CONTROL_H_INCLUDED__
00007 
00008 #include "IGUIElement.h"
00009 #include "SColor.h"
00010 
00011 namespace irr
00012 {
00013 namespace gui
00014 {
00016         class IGUITab : public IGUIElement
00017         {
00018         public:
00019 
00021                 IGUITab(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
00022                         : IGUIElement(EGUIET_TAB, environment, parent, id, rectangle) {}
00023 
00025 
00026                 virtual s32 getNumber() const = 0;
00027 
00029                 virtual void setDrawBackground(bool draw=true) = 0;
00030 
00032                 virtual void setBackgroundColor(video::SColor c) = 0;
00033 
00035                 virtual bool isDrawingBackground() const = 0;
00036 
00038                 virtual video::SColor getBackgroundColor() const = 0;
00039         };
00040 
00042         class IGUITabControl : public IGUIElement
00043         {
00044         public:
00045 
00047                 IGUITabControl(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
00048                         : IGUIElement(EGUIET_TAB_CONTROL, environment, parent, id, rectangle) {}
00049 
00051                 virtual IGUITab* addTab(const wchar_t* caption, s32 id=-1) = 0;
00052 
00054                 virtual s32 getTabCount() const = 0;
00055 
00057 
00060                 virtual IGUITab* getTab(s32 idx) const = 0;
00061 
00063 
00065                 virtual bool setActiveTab(s32 idx) = 0;
00066 
00068 
00070                 virtual bool setActiveTab(IGUIElement *tab) = 0;
00071 
00073                 virtual s32 getActiveTab() const = 0;
00074         };
00075 
00076 
00077 } // end namespace gui
00078 } // end namespace irr
00079 
00080 #endif
00081 

The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2008 by Nikolaus Gebhardt. Generated on Sun Sep 21 08:57:41 2008 by Doxygen (1.4.2)