MCPcopy Create free account
hub / github.com/VCVRack/Rack / finalizeWidget

Method finalizeWidget

src/widget/event.cpp:196–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void EventState::finalizeWidget(widget::Widget* w) {
197 if (hoveredWidget == w)
198 setHoveredWidget(NULL);
199 if (draggedWidget == w)
200 setDraggedWidget(NULL, 0);
201 if (dragHoveredWidget == w)
202 setDragHoveredWidget(NULL);
203 if (selectedWidget == w)
204 setSelectedWidget(NULL);
205 if (lastClickedWidget == w)
206 lastClickedWidget = NULL;
207}
208
209bool EventState::handleButton(math::Vec pos, int button, int action, int mods) {
210 bool cursorLocked = APP->window->isCursorLocked();

Callers 3

removeChildMethod · 0.80
clearChildrenMethod · 0.80
stepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected