Skip to main content

cursor

Function cursor 

Source
pub fn cursor<'a>(
    app: &'a AppHandle,
    name: &'a str,
) -> impl FnMut(&CursorQuery, Cursor) -> Cursor + 'a
Expand description

A viewport’s cursor hook (Viewport::on_cursor) running each new situation as the cursor.resolve step, the viewport named name: plugins give another cursor for a tool, a key held, a handle. An answer that is not a cursor keeps the default.