Trait Cursor

Source
pub trait Cursor {
    // Required methods
    fn draw(
        &self,
        ctx: &Context,
        font_ctx: &Context,
        line_y: f64,
        double_width: bool,
        hl: &HighlightMap,
    ) -> f64;
    fn is_visible(&self) -> bool;
    fn mode_info(&self) -> Option<&ModeInfo>;
}

Required Methods§

Source

fn draw( &self, ctx: &Context, font_ctx: &Context, line_y: f64, double_width: bool, hl: &HighlightMap, ) -> f64

return cursor current alpha value

Source

fn is_visible(&self) -> bool

Source

fn mode_info(&self) -> Option<&ModeInfo>

Implementors§