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

Method notifyActionAlign

Tools/LayoutEditor/PanelMainProperties.cpp:228–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226 }
227
228 void PanelMainProperties::notifyActionAlign(std::string_view /*_type*/, std::string_view _value, bool _final)
229 {
230 if (_final)
231 {
232 WidgetContainer* widgetContainer = EditorWidgets::getInstance().find(mCurrentWidget);
233
234 widgetContainer->setAlign(_value);
235 widgetContainer->getWidget()->setAlign(MyGUI::Align::parse(_value));
236
237 UndoManager::getInstance().addValue(PR_PROPERTIES);
238 }
239 }
240
241 void PanelMainProperties::notifyActionTemplate(std::string_view /*_type*/, std::string_view _value, bool _final)
242 {

Callers

nothing calls this directly

Calls 5

getWidgetMethod · 0.80
addValueMethod · 0.80
parseFunction · 0.50
findMethod · 0.45
setAlignMethod · 0.45

Tested by

no test coverage detected