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

Method getMousePosition

Tools/LayoutEditor/TextureControl.cpp:261–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259 }
260
261 MyGUI::IntPoint TextureControlLE::getMousePosition()
262 {
263 MyGUI::IntPoint point = MyGUI::InputManager::getInstance().getMousePosition() - mTexture->getAbsolutePosition();
264 point.left = (int)((double)point.left / mScaleValue);
265 point.top = (int)((double)point.top / mScaleValue);
266
267 return point;
268 }
269
270 void TextureControlLE::onChangeScale()
271 {

Callers 12

setVisibleMethod · 0.45
updateDragMethod · 0.45
connectPointMethod · 0.45
animateMethod · 0.45
moveMethod · 0.45
onMouseWheelMethod · 0.45
mouseDragMethod · 0.45
notifyFrameStartMethod · 0.45
updateDropItemsMethod · 0.45
notifyMouseDragMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected