93 size_t pos = _value.find(
"\\n");
94 if (pos == std::string::npos)
100 std::string value(_value);
101 while (pos != std::string::npos)
105 pos = value.find(
"\\n");
136 if (_key ==
"TextColour")
140 else if (_key ==
"TextAlign")
144 else if (_key ==
"FontName")
148 else if (_key ==
"FontHeight")
152 else if (_key ==
"Caption")
156 else if (_key ==
"TextShadowColour")
160 else if (_key ==
"TextShadow")
165 Base::setPropertyOverride(_key, _value);
static const std::string & getEmptyString()
static const UString & getEmptyUString()
const IntCoord & getCoord() const
virtual void setTextAlign(Align _value)
virtual bool getShadow() const
virtual const Colour & getTextColour() const
virtual const UString & getCaption() const
virtual void setShadowColour(const Colour &_value)
virtual const std::string & getFontName() const
virtual IntSize getTextSize() const
virtual void setShadow(bool _value)
virtual int getFontHeight() const
virtual void setFontHeight(int _value)
virtual void setTextColour(const Colour &_value)
virtual Align getTextAlign() const
virtual const Colour & getShadowColour() const
virtual void setFontName(const std::string &_value)
virtual void setCaption(const UString &_value)
static LanguageManager & getInstance()
ISubWidgetText * getSubWidgetText() const
const Colour & getTextShadowColour() const
virtual void setTextAlign(Align _value)
void setCaptionWithReplacing(const std::string &_value)
const std::string & getFontName() const
virtual int getFontHeight() const
virtual void setTextColour(const Colour &_value)
virtual void setFontHeight(int _value)
void setPropertyOverride(const std::string &_key, const std::string &_value) override
virtual const UString & getCaption() const
virtual IntSize getTextSize() const
bool getTextShadow() const
virtual void setTextShadowColour(const Colour &_value)
virtual void setTextShadow(bool _value)
const Colour & getTextColour() const
virtual void setFontName(const std::string &_value)
virtual void setCaption(const UString &_value)
virtual IntCoord getTextRegion() const
Align getTextAlign() const
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
types::TCoord< int > IntCoord
types::TSize< int > IntSize
static const Colour Black