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

Method updateSelectedFrame

Tools/ImageEditor/AnimationViewControl.cpp:211–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209 }
210
211 void AnimationViewControl::updateSelectedFrame()
212 {
213 if (mParentData == nullptr || mParentData->getChildSelected() == nullptr)
214 {
215 mImage->setImageCoord(MyGUI::IntCoord());
216 mCurrentFrame = 0;
217 mFrameInfo->setCaption(MyGUI::utility::toString(mCurrentFrame, " : ", mAnimation.getFrames().size()));
218 }
219 else
220 {
221 DataPtr selected = mParentData->getChildSelected();
222
223 mCurrentFrame = mParentData->getChildIndex(selected);
224 updateFrame();
225 }
226 }
227
228}

Callers

nothing calls this directly

Calls 7

toStringFunction · 0.85
getChildSelectedMethod · 0.80
setImageCoordMethod · 0.80
getChildIndexMethod · 0.80
IntCoordFunction · 0.50
setCaptionMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected