Skip to main content

Context

Trait Context 

Source
pub trait Context: Context {
    const SLOP: Self::Scalar;
    const MOUSE_SLOP: Self::Scalar;
}
Expand description

how a backend tunes the built-in widgets

Required Associated Constants§

Source

const SLOP: Self::Scalar

movement in frame coordinates before a touch becomes a drag

Source

const MOUSE_SLOP: Self::Scalar

movement in frame coordinates before a mouse press becomes a drag

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§