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

Method notifyChangeDataSelector

Tools/FontEditor/FontTextureController.cpp:47–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 void FontTextureController::notifyChangeDataSelector(DataPtr _data, bool _changeOnlySelection)
48 {
49 mParentData = _data;
50 if (mParentData != nullptr && mParentData->getType()->getName() != mParentTypeName)
51 mParentData = nullptr;
52
53 std::string_view texture;
54 PropertyPtr property = PropertyUtility::getPropertyByName("Font", "FontName");
55 if (property != nullptr)
56 {
57 texture = property->getValue();
58 }
59
60 updateTexture(texture);
61 }
62
63 // void FontTextureController::notifyChangeProperty(PropertyPtr _sender)
64 // {

Callers

nothing calls this directly

Calls 2

getTypeMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected