Skip to main content

TextSelectionStyle

Trait TextSelectionStyle 

Source
pub trait TextSelectionStyle: 'static {
    // Required methods
    fn handle(&self, theme: &Theme) -> TextSelectionHandleRecipe;
    fn magnifier(&self, theme: &Theme) -> TextMagnifierRecipe;
}
Expand description

Tier-3 protocol for the touch text-selection chrome. See the module docs.

Required Methods§

Source

fn handle(&self, theme: &Theme) -> TextSelectionHandleRecipe

Geometry and colours of a selection handle.

Source

fn magnifier(&self, theme: &Theme) -> TextMagnifierRecipe

Geometry and colours of the magnifier frame.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§