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

Method updateFrames

Tools/ImageEditor/IndexTextureController.cpp:156–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 void IndexTextureController::updateFrames()
157 {
158 mFrames.clear();
159
160 if (mParentData != nullptr)
161 {
162 for (Data::VectorData::const_iterator child = mParentData->getChilds().begin();
163 child != mParentData->getChilds().end();
164 child++)
165 {
166 MyGUI::IntPoint value = (*child)->getPropertyValue<MyGUI::IntPoint>("Point");
167 mFrames.emplace_back(MyGUI::IntCoord(value, mSize), ScopeTextureControl::SelectorPosition);
168 }
169 }
170
171 if (mControl != nullptr)
172 mControl->setViewSelectors(mFrames);
173 }
174
175}

Callers

nothing calls this directly

Calls 5

setViewSelectorsMethod · 0.80
IntCoordFunction · 0.50
clearMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected