MCPcopy Create free account
hub / github.com/VitalAudio/visage / handleMouseLeave

Method handleMouseLeave

visage_app/window_event_handler.cpp:338–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336 }
337
338 void WindowEventHandler::handleMouseLeave(int x, int y, int button_state, int modifiers) {
339 if (mouse_hovered_frame_) {
340 MouseEvent mouse_event = mouseEvent(last_mouse_position_.x, last_mouse_position_.y,
341 button_state, modifiers);
342 mouse_event.position = mouse_event.window_position - mouse_hovered_frame_->positionInWindow();
343 mouse_event.event_frame = mouse_hovered_frame_;
344 mouse_hovered_frame_->processMouseExit(mouse_event);
345 mouse_hovered_frame_ = nullptr;
346 }
347 }
348
349 void WindowEventHandler::handleMouseWheel(float delta_x, float delta_y, float precise_x,
350 float precise_y, int x, int y, int button_state,

Callers

nothing calls this directly

Calls 2

positionInWindowMethod · 0.80
processMouseExitMethod · 0.80

Tested by

no test coverage detected