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

Method notifyMouseButtonPressed

Tools/LayoutEditor/SeparatorPartControl.cpp:29–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27 }
28
29 void SeparatorPartControl::notifyMouseButtonPressed(
30 MyGUI::Widget* _sender,
31 int _left,
32 int _top,
33 MyGUI::MouseButton _id)
34 {
35 if (_id == MyGUI::MouseButton::Left)
36 {
37 mStartLeftPanel = mLeftPanel->getCoord();
38 mStartRightPanel = mRightPanel->getCoord();
39 mStartSeparatorH = mSeparatorH->getCoord();
40 mStartMousePosition = MyGUI::InputManager::getInstance().getMousePosition();
41 }
42 }
43
44 void SeparatorPartControl::notifyMouseDrag(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id)
45 {

Callers

nothing calls this directly

Calls 1

getMousePositionMethod · 0.45

Tested by

no test coverage detected