Example #1
0
	IntSize MenuItem::_getContentSize()
	{
		ISubWidgetText* text = getSubWidgetText();
		if (text == nullptr)
			return mMinSize;

		return text->getTextSize() + (getSize() - text->getSize());
	}
Example #2
0
 void TextBox::setCaption(const UString& _caption)
 {
     if (nullptr != getSubWidgetText())
         getSubWidgetText()->setCaption(_caption);
 }
Example #3
0
 int TextBox::getFontHeight()
 {
     return (nullptr == getSubWidgetText()) ? 0 : getSubWidgetText()->getFontHeight();
 }
Example #4
0
 void TextBox::setFontHeight(int _height)
 {
     if (nullptr != getSubWidgetText())
         getSubWidgetText()->setFontHeight(_height);
 }
Example #5
0
 const std::string& TextBox::getFontName()
 {
     if (nullptr == getSubWidgetText())
         return Constants::getEmptyString();
     return getSubWidgetText()->getFontName();
 }
Example #6
0
 void TextBox::setFontName(const std::string& _value)
 {
     if (nullptr != getSubWidgetText())
         getSubWidgetText()->setFontName(_value);
 }
Example #7
0
 const Colour& TextBox::getTextColour()
 {
     return (nullptr == getSubWidgetText()) ? Colour::Zero : getSubWidgetText()->getTextColour();
 }
 void TextWidget::setWordWrap(bool wrap) {
     if (nullptr != getSubWidgetText())
         getSubWidgetText()->setWordWrap(wrap);
 }
Example #9
0
 Align TextBox::getTextAlign()
 {
     if (getSubWidgetText() != nullptr)
         return getSubWidgetText()->getTextAlign();
     return Align::Default;
 }
Example #10
0
 void TextBox::setTextAlign(Align _value)
 {
     if (getSubWidgetText() != nullptr)
         getSubWidgetText()->setTextAlign(_value);
 }
Example #11
0
 IntSize TextBox::getTextSize()
 {
     return (nullptr == getSubWidgetText()) ? IntSize() : getSubWidgetText()->getTextSize();
 }
Example #12
0
 IntCoord TextBox::getTextRegion()
 {
     return (nullptr == getSubWidgetText()) ? IntCoord() : getSubWidgetText()->getCoord();
 }
Example #13
0
 bool TextBox::getTextShadow()
 {
     return (nullptr == getSubWidgetText()) ? false : getSubWidgetText()->getShadow();
 }
Example #14
0
 void TextBox::setTextShadow(bool _value)
 {
     if (nullptr != getSubWidgetText())
         getSubWidgetText()->setShadow(_value);
 }
Example #15
0
 const Colour& TextBox::getTextShadowColour()
 {
     return (nullptr == getSubWidgetText()) ? Colour::Black : getSubWidgetText()->getShadowColour();
 }
Example #16
0
 const UString& TextBox::getCaption()
 {
     if (nullptr == getSubWidgetText())
         return Constants::getEmptyUString();
     return getSubWidgetText()->getCaption();
 }
Example #17
0
 void TextBox::setTextColour(const Colour& _value)
 {
     if (nullptr != getSubWidgetText())
         getSubWidgetText()->setTextColour(_value);
 }
 bool TextWidget::getWordWrap() const {
     if (nullptr != getSubWidgetText())
         return getSubWidgetText()->getWordWrap();
     return false;
 }