MyGUI 3.4.3
MyGUI_TextBox.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_TEXT_BOX_H_
8#define MYGUI_TEXT_BOX_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_Widget.h"
12
13namespace MyGUI
14{
15
20 {
22
23 public:
25 virtual IntCoord getTextRegion() const;
26
28 virtual IntSize getTextSize() const;
29
31 virtual void setCaption(const UString& _caption);
33 virtual const UString& getCaption() const;
34
36 virtual void setFontName(std::string_view _value);
38 std::string_view getFontName() const;
39
41 virtual void setFontHeight(int _height);
43 virtual int getFontHeight() const;
44
46 virtual void setTextAlign(Align _value);
48 Align getTextAlign() const;
49
51 virtual void setTextColour(const Colour& _value);
53 const Colour& getTextColour() const;
54
60 void setCaptionWithReplacing(std::string_view _value);
61
63 virtual void setTextShadowColour(const Colour& _value);
65 const Colour& getTextShadowColour() const;
66
68 virtual void setTextShadow(bool _value);
70 bool getTextShadow() const;
71
72 protected:
73 void setPropertyOverride(std::string_view _key, std::string_view _value) override;
74 };
75
76} // namespace MyGUI
77
78#endif // MYGUI_TEXT_BOX_H_
#define MYGUI_EXPORT
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition MyGUI_RTTI.h:69
widget description should be here.
const Colour & getTextShadowColour() const
virtual void setTextAlign(Align _value)
virtual void setCaption(const UString &_caption)
void setPropertyOverride(std::string_view _key, std::string_view _value) override
virtual int getFontHeight() const
virtual void setTextColour(const Colour &_value)
virtual const UString & getCaption() const
virtual IntSize getTextSize() const
bool getTextShadow() const
virtual void setTextShadowColour(const Colour &_value)
void setCaptionWithReplacing(std::string_view _value)
virtual void setFontName(std::string_view _value)
virtual void setTextShadow(bool _value)
const Colour & getTextColour() const
virtual IntCoord getTextRegion() const
virtual void setFontHeight(int _height)
std::string_view getFontName() const
Align getTextAlign() const
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
widget description should be here.
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:36
types::TSize< int > IntSize
Definition MyGUI_Types.h:30