MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / OnMouseUp

Method OnMouseUp

Applications/LemonPaint/canvas.cpp:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void Canvas::OnMouseUp(vector2i_t mousePos){
66 mousePos.x -= bounds.pos.x;
67 mousePos.y -= bounds.pos.y;
68
69 sBarVert.pressed = false;
70 sBarHor.pressed = false;
71
72 if(pressed)
73 DragBrush(lastMousePos, mousePos);
74
75 pressed = false;
76}
77
78void Canvas::OnMouseMove(vector2i_t mousePos){
79 mousePos.x -= bounds.pos.x;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected