MyGUI 3.4.1
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 public Widget
21 {
23
24 public:
25 TextBox();
26
28 virtual IntCoord getTextRegion() const;
29
31 virtual IntSize getTextSize() const;
32
34 virtual void setCaption(const UString& _value);
36 virtual const UString& getCaption() const;
37
39 virtual void setFontName(const std::string& _value);
41 const std::string& getFontName() const;
42
44 virtual void setFontHeight(int _value);
46 virtual int getFontHeight() const;
47
49 virtual void setTextAlign(Align _value);
51 Align getTextAlign() const;
52
54 virtual void setTextColour(const Colour& _value);
56 const Colour& getTextColour() const;
57
63 void setCaptionWithReplacing(const std::string& _value);
64
66 virtual void setTextShadowColour(const Colour& _value);
68 const Colour& getTextShadowColour() const;
69
71 virtual void setTextShadow(bool _value);
73 bool getTextShadow() const;
74
75 protected:
76 void setPropertyOverride(const std::string& _key, const std::string& _value) override;
77 };
78
79} // namespace MyGUI
80
81#endif // MYGUI_TEXT_BOX_H_
#define MYGUI_EXPORT
#define MYGUI_RTTI_DERIVED(DerivedType)
Definition: MyGUI_RTTI.h:48
widget description should be here.
Definition: MyGUI_TextBox.h:21
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
widget description should be here.
Definition: MyGUI_Widget.h:37