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§
Sourcefn handle(&self, theme: &Theme) -> TextSelectionHandleRecipe
fn handle(&self, theme: &Theme) -> TextSelectionHandleRecipe
Geometry and colours of a selection handle.
Sourcefn magnifier(&self, theme: &Theme) -> TextMagnifierRecipe
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".