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

Method updateImageCoord

Tools/ImageEditor/AnimationViewControl.cpp:134–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 }
133
134 void AnimationViewControl::updateImageCoord()
135 {
136 MyGUI::IntSize size = mAnimation.getSize();
137 MyGUI::IntSize parentSize = mImage->getParentSize();
138
139 mImage->setCoord(
140 (parentSize.width - size.width) / 2,
141 (parentSize.height - size.height) / 2,
142 size.width,
143 size.height);
144 }
145
146 void AnimationViewControl::notifyChangeCoord(MyGUI::Widget* _sender)
147 {

Callers

nothing calls this directly

Calls 3

getParentSizeMethod · 0.80
getSizeMethod · 0.45
setCoordMethod · 0.45

Tested by

no test coverage detected