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§
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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".