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 {
23
24 public:
26 void setCaption(const UString& _value) override;
28 const UString& getCaption() const override;
29
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_
#define MYGUI_EXPORT
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:69
static constexpr int DEFAULT_WIDTH
widget description should be here.
void setCaption(const UString &_value) override
void setPropertyOverride(std::string_view _key, std::string_view _value) override
void setButtonWidth(int _width=TabControl::DEFAULT_WIDTH)
Set button width.
void shutdownOverride() override
void initialiseOverride() override
const UString & getCaption() const override
widget description should be here.
A UTF-16 string with implicit conversion to/from std::string and std::wstring.