MCPcopy Create free account
hub / github.com/MyGUI/mygui / setProperty

Method setProperty

MyGUIEngine/src/MyGUI_Widget.cpp:1135–1154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1133 }
1134
1135 void Widget::setProperty(std::string_view _key, std::string_view _value)
1136 {
1137 std::string key{_key};
1138 std::string value{_value};
1139
1140 if (BackwardCompatibility::checkProperty(this, key, value))
1141 {
1142 size_t index = key.find('_');
1143 if (index != std::string::npos)
1144 {
1145 MYGUI_LOG(
1146 Warning,
1147 "Widget property '" << key << "' have type prefix - use '" << key.substr(index + 1) << "' instead ["
1148 << LayoutManager::getInstance().getCurrentLayout() << "]");
1149 key = key.substr(index + 1);
1150 }
1151
1152 setPropertyOverride(key, value);
1153 }
1154 }
1155
1156 VectorWidgetPtr Widget::getSkinWidgetsByName(std::string_view _name) const
1157 {

Callers 5

ExportGui_SetPropertyFunction · 0.45
Gui.hFile · 0.45
parseMethod · 0.45
createWidgetMethod · 0.45

Calls 2

substrMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected