Expand description
Mouse hover hit-testing and click edge detection.
This module provides traits for querying whether the cursor is over a layout
element, strategies for turning raw button state into click signals, and
per-element managers that combine hover with a MouseButton.
Raw mouse state comes from cotis_utils::interactivity::mouse::MouseProvider;
layout bounds come from cotis_utils::element_state::ElementBoundingBox.
Structs§
- Mouse
Button Element Manager - Per-element click manager that combines hover and a mouse button.
- Mouse
Button Manager - Tracks click signals for a single mouse button with a configurable strategy.
Enums§
- Mouse
Clicking Strategy - Determines when
MouseButtonManager::is_clickedreturnstrue.
Traits§
- Element
Cursor State - Query whether the cursor is over a layout element.
- Full
Element Cursor State - Extends
ElementCursorStatewith raw mouse button state.
Functions§
- cursor_
in_ rect_ with_ margins - Hit test
cursoragainstx, y, width, heightafter expanding or shrinking the rect per side.