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

Method notifyMouseButtonPressed

Tools/LayoutEditor/TextureControl.cpp:163–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161 }
162
163 void TextureControlLE::notifyMouseButtonPressed(MyGUI::Widget* _sender, int _left, int _top, MyGUI::MouseButton _id)
164 {
165 if (_id == MyGUI::MouseButton::Right)
166 {
167 mMouseCapture = true;
168 mRightMouseClick = MyGUI::InputManager::getInstance().getMousePositionByLayer();
169 mViewOffset = mView->getViewOffset();
170
171 mTexture->setPointer("hand");
172 MyGUI::PointerManager::getInstance().setPointer("hand");
173 MyGUI::PointerManager::getInstance().eventChangeMousePointer("hand");
174 }
175 else if (_id == MyGUI::MouseButton::Left)
176 {
177 mMouseLeftPressed = true;
178 onMouseButtonPressed(getMousePosition());
179 }
180 }
181
182 void TextureControlLE::notifyMouseButtonReleased(
183 MyGUI::Widget* _sender,

Callers

nothing calls this directly

Calls 3

getViewOffsetMethod · 0.45
setPointerMethod · 0.45

Tested by

no test coverage detected