MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / captureMouse

Method captureMouse

src/ui/widget.cpp:1266–1271  ·  view source on GitHub ↗

* Captures the mouse to send all the future mouse messsages to the * specified widget (included the kMouseMoveMessage and kSetCursorMessage). */

Source from the content-addressed store, hash-verified

1264 * specified widget (included the kMouseMoveMessage and kSetCursorMessage).
1265 */
1266void Widget::captureMouse()
1267{
1268 if (!manager()->getCapture()) {
1269 manager()->setCapture(this);
1270 }
1271}
1272
1273/**
1274 * Releases the capture of the mouse events.

Callers 10

initToolLoopMethod · 0.45
onMouseDownMethod · 0.45
MovingPixelsStateMethod · 0.45
onMouseDownMethod · 0.45
onMouseDownMethod · 0.45
onMouseDownMethod · 0.45
MovingCelStateMethod · 0.45
onMouseDownMethod · 0.45
MovingSymmetryStateMethod · 0.45
setCaptureMethod · 0.45

Calls 2

getCaptureMethod · 0.80
setCaptureMethod · 0.80

Tested by

no test coverage detected