00001
00002
00003
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 #include "IGUISkin.h"
00011
00012 namespace irr
00013 {
00014 namespace gui
00015 {
00017 class IGUITab : public IGUIElement
00018 {
00019 public:
00020
00022 IGUITab(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
00023 : IGUIElement(EGUIET_TAB, environment, parent, id, rectangle) {}
00024
00026
00027 virtual s32 getNumber() const = 0;
00028
00030 virtual void setDrawBackground(bool draw=true) = 0;
00031
00033 virtual void setBackgroundColor(video::SColor c) = 0;
00034
00036 virtual bool isDrawingBackground() const = 0;
00037
00039 virtual video::SColor getBackgroundColor() const = 0;
00040
00042 virtual void setTextColor(video::SColor c) = 0;
00043
00045 virtual video::SColor getTextColor() const = 0;
00046 };
00047
00049 class IGUITabControl : public IGUIElement
00050 {
00051 public:
00052
00054 IGUITabControl(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
00055 : IGUIElement(EGUIET_TAB_CONTROL, environment, parent, id, rectangle) {}
00056
00058 virtual IGUITab* addTab(const wchar_t* caption, s32 id=-1) = 0;
00059
00061 virtual s32 getTabCount() const = 0;
00062
00064
00067 virtual IGUITab* getTab(s32 idx) const = 0;
00068
00070
00072 virtual bool setActiveTab(s32 idx) = 0;
00073
00075
00077 virtual bool setActiveTab(IGUIElement *tab) = 0;
00078
00080 virtual s32 getActiveTab() const = 0;
00081
00083 virtual void setTabHeight( s32 height ) = 0;
00084
00086
00087 virtual s32 getTabHeight() const = 0;
00088
00090 virtual void setTabMaxWidth(s32 width ) = 0;
00091
00093 virtual s32 getTabMaxWidth() const = 0;
00094
00096
00097 virtual void setTabVerticalAlignment( gui::EGUI_ALIGNMENT alignment ) = 0;
00098
00100
00101 virtual gui::EGUI_ALIGNMENT getTabVerticalAlignment() const = 0;
00102
00104 virtual void setTabExtraWidth( s32 extraWidth ) = 0;
00105
00107
00108 virtual s32 getTabExtraWidth() const = 0;
00109 };
00110
00111
00112 }
00113 }
00114
00115 #endif
00116