Expand description
Cursor icon type and global cursor state.
Widgets call set_cursor_icon in their on_event handler when hovered.
The platform harness calls current_cursor_icon after each mouse-move
dispatch and applies it to the OS window or browser canvas.
The framework resets the cursor to CursorIcon::Default before each
mouse-move dispatch so the deepest hovered widget always wins without any
explicit reset in widget code.
Enums§
- Cursor
Icon - Logical cursor shape — mirrors egui’s
CursorIconfor portability.
Functions§
- current_
cursor_ icon - Read the cursor icon set by widgets during the current frame.
- reset_
cursor_ icon - Reset to
CursorIcon::Default. - set_
cursor_ icon - Set the cursor icon for this frame.