MyGUI_TextBox.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_TEXT_BOX_H_
#define MYGUI_TEXT_BOX_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_Widget.h"
namespace MyGUI
{
class MYGUI_EXPORT TextBox : public Widget
{
MYGUI_RTTI_DERIVED(TextBox)
public:
virtual IntCoord getTextRegion() const;
virtual IntSize getTextSize() const;
virtual void setCaption(const UString& _caption);
virtual const UString& getCaption() const;
virtual void setFontName(std::string_view _value);
std::string_view getFontName() const;
virtual void setFontHeight(int _height);
virtual int getFontHeight() const;
virtual void setTextAlign(Align _value);
Align getTextAlign() const;
virtual void setTextColour(const Colour& _value);
const Colour& getTextColour() const;
void setCaptionWithReplacing(std::string_view _value);
virtual void setTextShadowColour(const Colour& _value);
const Colour& getTextShadowColour() const;
virtual void setTextShadow(bool _value);
bool getTextShadow() const;
protected:
void setPropertyOverride(std::string_view _key, std::string_view _value) override;
};
} // namespace MyGUI
#endif // MYGUI_TEXT_BOX_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_Widget.h
MyGUI::TextBox
widget description should be here.
Definition MyGUI_TextBox.h:20
MyGUI::TextBox::getTextShadowColour
const Colour & getTextShadowColour() const
Definition MyGUI_TextBox.cpp:113
MyGUI::TextBox::setTextAlign
virtual void setTextAlign(Align _value)
Definition MyGUI_TextBox.cpp:25
MyGUI::TextBox::setCaption
virtual void setCaption(const UString &_caption)
Definition MyGUI_TextBox.cpp:73
MyGUI::TextBox::setPropertyOverride
void setPropertyOverride(std::string_view _key, std::string_view _value) override
Definition MyGUI_TextBox.cpp:129
MyGUI::TextBox::getFontHeight
virtual int getFontHeight() const
Definition MyGUI_TextBox.cpp:68
MyGUI::TextBox::setTextColour
virtual void setTextColour(const Colour &_value)
Definition MyGUI_TextBox.cpp:38
MyGUI::TextBox::getCaption
virtual const UString & getCaption() const
Definition MyGUI_TextBox.cpp:79
MyGUI::TextBox::getTextSize
virtual IntSize getTextSize() const
Definition MyGUI_TextBox.cpp:20
MyGUI::TextBox::getTextShadow
bool getTextShadow() const
Definition MyGUI_TextBox.cpp:124
MyGUI::TextBox::setTextShadowColour
virtual void setTextShadowColour(const Colour &_value)
Definition MyGUI_TextBox.cpp:107
MyGUI::TextBox::setCaptionWithReplacing
void setCaptionWithReplacing(std::string_view _value)
Definition MyGUI_TextBox.cpp:86
MyGUI::TextBox::setFontName
virtual void setFontName(std::string_view _value)
Definition MyGUI_TextBox.cpp:49
MyGUI::TextBox::setTextShadow
virtual void setTextShadow(bool _value)
Definition MyGUI_TextBox.cpp:118
MyGUI::TextBox::getTextColour
const Colour & getTextColour() const
Definition MyGUI_TextBox.cpp:44
MyGUI::TextBox::getTextRegion
virtual IntCoord getTextRegion() const
Definition MyGUI_TextBox.cpp:15
MyGUI::TextBox::setFontHeight
virtual void setFontHeight(int _height)
Definition MyGUI_TextBox.cpp:62
MyGUI::TextBox::getFontName
std::string_view getFontName() const
Definition MyGUI_TextBox.cpp:55
MyGUI::TextBox::getTextAlign
Align getTextAlign() const
Definition MyGUI_TextBox.cpp:31
MyGUI::UString
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
Definition MyGUI_UString.h:144
MyGUI::Widget
widget description should be here.
Definition MyGUI_Widget.h:40
MyGUI
Definition MyGUI_ActionController.h:15
MyGUI::IntCoord
types::TCoord< int > IntCoord
Definition MyGUI_Types.h:36
MyGUI::IntSize
types::TSize< int > IntSize
Definition MyGUI_Types.h:30
MyGUI::Align
Definition MyGUI_Align.h:20
MyGUI::Colour
Definition MyGUI_Colour.h:17