MyGUI_TabItem.h
Go to the documentation of this file.
/*
* This source file is part of MyGUI. For the latest info, see http://mygui.info/
* Distributed under the MIT License
* (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
*/
#ifndef MYGUI_TAB_ITEM_H_
#define MYGUI_TAB_ITEM_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_TextBox.h"
#include "MyGUI_TabControl.h"
namespace MyGUI
{
class MYGUI_EXPORT TabItem : public TextBox // FIXME temporary use TextBox instead of Widget for caption
{
MYGUI_RTTI_DERIVED(TabItem)
public:
void setCaption(const UString& _value) override;
const UString& getCaption() const override;
void setButtonWidth(int _width = TabControl::DEFAULT_WIDTH);
protected:
void initialiseOverride() override;
void shutdownOverride() override;
void setPropertyOverride(std::string_view _key, std::string_view _value) override;
};
} // namespace MyGUI
#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