MyGUI: MyGUI_TabItem.h Source File

MyGUI 3.4.3

MyGUI_TabItem.h
Go to the documentation of this file.
1/*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7#ifndef MYGUI_TAB_ITEM_H_
8#define MYGUI_TAB_ITEM_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_TextBox.h"
12#include "MyGUI_TabControl.h"
13
14namespace MyGUI
15{
16
20 class MYGUI_EXPORT TabItem : public TextBox // FIXME temporary use TextBox instead of Widget for caption
21 {
22 MYGUI_RTTI_DERIVED(TabItem)
23
24 public:
26 void setCaption(const UString& _value) override;
28 const UString& getCaption() const override;
29
31 void setButtonWidth(int _width = TabControl::DEFAULT_WIDTH);
32
33 protected:
34 void initialiseOverride() override;
35 void shutdownOverride() override;
36
37 void setPropertyOverride(std::string_view _key, std::string_view _value) override;
38 };
39
40} // namespace MyGUI
41
42#endif // MYGUI_TAB_ITEM_H_
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MYGUI_RTTI_DERIVED
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:69
MyGUI_TabControl.h
MyGUI_TextBox.h
MyGUI::TabControl::DEFAULT_WIDTH
static constexpr int DEFAULT_WIDTH
Definition MyGUI_TabControl.h:53
MyGUI::TabItem
widget description should be here.
Definition MyGUI_TabItem.h:21
MyGUI::TabItem::setCaption
void setCaption(const UString &_value) override
Definition MyGUI_TabItem.cpp:30
MyGUI::TabItem::setPropertyOverride
void setPropertyOverride(std::string_view _key, std::string_view _value) override
Definition MyGUI_TabItem.cpp:54
MyGUI::TabItem::setButtonWidth
void setButtonWidth(int _width=TabControl::DEFAULT_WIDTH)
Set button width.
Definition MyGUI_TabItem.cpp:47
MyGUI::TabItem::shutdownOverride
void shutdownOverride() override
Definition MyGUI_TabItem.cpp:21
MyGUI::TabItem::initialiseOverride
void initialiseOverride() override
Definition MyGUI_TabItem.cpp:13
MyGUI::TabItem::getCaption
const UString & getCaption() const override
Definition MyGUI_TabItem.cpp:39
MyGUI::TextBox
widget description should be here.
Definition MyGUI_TextBox.h:20
MyGUI::UString
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
Definition MyGUI_UString.h:144
MyGUI
Definition MyGUI_ActionController.h:15