Skip to main content

TextSelectionSurface

Trait TextSelectionSurface 

Source
pub trait TextSelectionSurface: HasTextNode {
    // Provided methods
    fn uses_default_selection_behavior(&self) -> bool { ... }
    fn is_selectable_text(&self) -> bool { ... }
    fn selection_start(&self) -> u32 { ... }
    fn selection_end(&self) -> u32 { ... }
    fn selectable(&self, selectable: bool) -> &Self { ... }
    fn selection_color(&self, color: u32) -> &Self { ... }
    fn selection_range(&self, start: u32, end: u32) -> &Self { ... }
    fn caret_color(&self, color: u32) -> &Self { ... }
}

Provided Methods§

Source

fn uses_default_selection_behavior(&self) -> bool

Source

fn is_selectable_text(&self) -> bool

Source

fn selection_start(&self) -> u32

Source

fn selection_end(&self) -> u32

Source

fn selectable(&self, selectable: bool) -> &Self

Source

fn selection_color(&self, color: u32) -> &Self

Source

fn selection_range(&self, start: u32, end: u32) -> &Self

Source

fn caret_color(&self, color: u32) -> &Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§