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

Method notifyMouseButtonPressed

Tools/EditorFramework/TextureControl.cpp:167–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getViewOffsetMethod · 0.45
setPointerMethod · 0.45

Tested by

no test coverage detected