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

Method notifyChangeProperty

Tools/ImageEditor/FrameTextureController.cpp:82–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 }
81
82 void FrameTextureController::notifyChangeProperty(PropertyPtr _sender)
83 {
84 if (!mActivated || !PropertyUtility::isDataSelected(_sender->getOwner()))
85 return;
86
87 if (_sender->getOwner()->getType()->getName() == "Group")
88 {
89 if (_sender->getType()->getName() == "Texture")
90 mControl->setTextureValue(_sender->getValue());
91 else if (_sender->getType()->getName() == "Size")
92 updateCoords(_sender->getValue());
93 }
94 else if (_sender->getOwner()->getType()->getName() == "Frame")
95 {
96 if (_sender->getType()->getName() == "Point")
97 updateFrames();
98 }
99 }
100
101 void FrameTextureController::notifyChangeValue(std::string_view _value)
102 {

Callers

nothing calls this directly

Calls 4

setTextureValueMethod · 0.80
getOwnerMethod · 0.45
getTypeMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected