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

Method updateCoord

Tools/LayoutEditor/SelectorControl.cpp:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 void SelectorControlLE::updateCoord()
75 {
76 mCoordReal.left = (int)((double)mCoordValue.left * mScaleValue) + mProjectionDiff.left;
77 mCoordReal.top = (int)((double)mCoordValue.top * mScaleValue) + mProjectionDiff.top;
78 mCoordReal.width = (int)((double)mCoordValue.width * mScaleValue) + mProjectionDiff.width;
79 mCoordReal.height = (int)((double)mCoordValue.height * mScaleValue) + mProjectionDiff.height;
80
81 mMainWidget->setCoord(mCoordReal);
82 }
83
84 void SelectorControlLE::notifyWindowChangeCoord(MyGUI::Window* _sender)
85 {

Callers

nothing calls this directly

Calls 1

setCoordMethod · 0.45

Tested by

no test coverage detected