| 127 | } |
| 128 | |
| 129 | void TextBox::setPropertyOverride(std::string_view _key, std::string_view _value) |
| 130 | { |
| 131 | /// @wproperty{TextBox, TextColour, Colour} Text colour. |
| 132 | if (_key == "TextColour") |
| 133 | setTextColour(utility::parseValue<Colour>(_value)); |
| 134 | |
| 135 | /// @wproperty{TextBox, TextAlign, Align} Text alignment. |
| 136 | else if (_key == "TextAlign") |
| 137 | setTextAlign(utility::parseValue<Align>(_value)); |
| 138 | |
| 139 | /// @wproperty{TextBox, FontName, string} Font name. |
| 140 | else if (_key == "FontName") |
| 141 | setFontName(_value); |
| 142 | |
| 143 | /// @wproperty{TextBox, FontHeight, int} Font height. |
| 144 | else if (_key == "FontHeight") |
| 145 | setFontHeight(utility::parseValue<int>(_value)); |
| 146 | |
| 147 | /// @wproperty{TextBox, Caption, string} Text value. |
| 148 | else if (_key == "Caption") |
| 149 | setCaptionWithReplacing(_value); |
| 150 | |
| 151 | /// @wproperty{TextBox, TextShadowColour, Colour} Text shadow colour. |
| 152 | else if (_key == "TextShadowColour") |
| 153 | setTextShadowColour(utility::parseValue<Colour>(_value)); |
| 154 | |
| 155 | /// @wproperty{TextBox, TextShadow, bool} Is text shadow visible. |
| 156 | else if (_key == "TextShadow") |
| 157 | setTextShadow(utility::parseValue<bool>(_value)); |
| 158 | |
| 159 | else |
| 160 | { |
| 161 | Base::setPropertyOverride(_key, _value); |
| 162 | return; |
| 163 | } |
| 164 | |
| 165 | eventChangeProperty(this, _key, _value); |
| 166 | } |
| 167 | |
| 168 | } // namespace MyGUI |
nothing calls this directly
no test coverage detected