Irrlicht Engine: IGUITabControl.h Source File

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

# IGUITabControl.h

Go to the documentation of this file.

    00001 // Copyright (C) 2002-2010 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 #include "IGUISkin.h"
    00011
    00012 namespace irr
    00013 {
    00014 namespace gui
    00015 {
    00017
    00018         class IGUITab : public IGUIElement
    00019         {
    00020         public:
    00021
    00023                 IGUITab(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
    00024                         : IGUIElement(EGUIET_TAB, environment, parent, id, rectangle) {}
    00025
    00027
    00028                 virtual s32 getNumber() const = 0;
    00029
    00031                 virtual void setDrawBackground(bool draw=true) = 0;
    00032
    00034                 virtual void setBackgroundColor(video::SColor c) = 0;
    00035
    00037                 virtual bool isDrawingBackground() const = 0;
    00038
    00040                 virtual video::SColor getBackgroundColor() const = 0;
    00041
    00043                 virtual void setTextColor(video::SColor c) = 0;
    00044
    00046                 virtual video::SColor getTextColor() const = 0;
    00047         };
    00048
    00050         class IGUITabControl : public IGUIElement
    00051         {
    00052         public:
    00053
    00055                 IGUITabControl(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
    00056                         : IGUIElement(EGUIET_TAB_CONTROL, environment, parent, id, rectangle) {}
    00057
    00059                 virtual IGUITab* addTab(const wchar_t* caption, s32 id=-1) = 0;
    00060
    00062                 virtual s32 getTabCount() const = 0;
    00063
    00065
    00068                 virtual IGUITab* getTab(s32 idx) const = 0;
    00069
    00071
    00073                 virtual bool setActiveTab(s32 idx) = 0;
    00074
    00076
    00078                 virtual bool setActiveTab(IGUIElement *tab) = 0;
    00079
    00081                 virtual s32 getActiveTab() const = 0;
    00082
    00084                 virtual void setTabHeight( s32 height ) = 0;
    00085
    00087
    00088                 virtual s32 getTabHeight() const = 0;
    00089
    00091                 virtual void setTabMaxWidth(s32 width ) = 0;
    00092
    00094                 virtual s32 getTabMaxWidth() const = 0;
    00095
    00097
    00098                 virtual void setTabVerticalAlignment( gui::EGUI_ALIGNMENT alignment ) = 0;
    00099
    00101
    00102                 virtual gui::EGUI_ALIGNMENT getTabVerticalAlignment() const = 0;
    00103
    00105                 virtual void setTabExtraWidth( s32 extraWidth ) = 0;
    00106
    00108
    00109                 virtual s32 getTabExtraWidth() const = 0;
    00110         };
    00111
    00112
    00113 } // end namespace gui
    00114 } // end namespace irr
    00115
    00116 #endif
    00117

| The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Sun Oct 24 12:41:56 2010 by Doxygen (1.6.2)