Guide API
Skip to main content

focused_cursor

Function focused_cursor 

Source
pub fn focused_cursor<L: ListViewer + ?Sized>(this: &L) -> Option<Point>
Expand description

The view-local cursor position the focused cell sits at, or None if no focused cell is visible. Computed &self-only so a concrete widget can surface it via View::cursor_request.

The cursor position is derived on demand here — under the read-only &self draw and top-down cursor walk, draw does not place the cursor itself.