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

Method updateFrame

Tools/ImageEditor/AnimationViewControl.cpp:199–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 }
198
199 void AnimationViewControl::updateFrame()
200 {
201 mCurrentFrame %= mAnimation.getFrames().size();
202 MyGUI::IntPoint point = mAnimation.getFrames()[mCurrentFrame].first;
203
204 mImage->setImageCoord(
205 MyGUI::IntCoord(point.left, point.top, mAnimation.getSize().width, mAnimation.getSize().height));
206 mImage->setImageTile(mAnimation.getSize());
207 mImage->setImageIndex(0);
208 mFrameInfo->setCaption(MyGUI::utility::toString(mCurrentFrame, " : ", mAnimation.getFrames().size()));
209 }
210
211 void AnimationViewControl::updateSelectedFrame()
212 {

Callers

nothing calls this directly

Calls 8

toStringFunction · 0.85
setImageCoordMethod · 0.80
setImageTileMethod · 0.80
IntCoordFunction · 0.50
sizeMethod · 0.45
getSizeMethod · 0.45
setImageIndexMethod · 0.45
setCaptionMethod · 0.45

Tested by

no test coverage detected