Trait rat_text::HasScreenCursor

source ·
pub trait HasScreenCursor {
    // Required method
    fn screen_cursor(&self) -> Option<(u16, u16)>;
}
Expand description

Trait for accessing the screen-cursor.

In ratatui the screen-cursor can’t be set during rendering, instead it must be set for the Frame at some point.

This trait provides a method to get the screen cursor (if any) for a widget.

Required Methods§

source

fn screen_cursor(&self) -> Option<(u16, u16)>

Does the widget have a screen cursor?

Implementors§