pub struct Config {Show 13 fields
pub menu_delay_ms: u32,
pub touch_select_delay_ms: u32,
pub scroll_flick_timeout_ms: u32,
pub scroll_flick_mul: f32,
pub scroll_flick_sub: f32,
pub scroll_dist_em: f32,
pub pan_dist_thresh: f32,
pub mouse_pan: MousePan,
pub mouse_text_pan: MousePan,
pub mouse_nav_focus: bool,
pub touch_nav_focus: bool,
pub shortcuts: Shortcuts,
pub is_dirty: bool,
}
Expand description
Event handling configuration
This is serializable (using feature = "config"
) with the following fields:
menu_delay_ms
:u32
(milliseconds)
touch_select_delay_ms
:u32
(milliseconds)
scroll_flick_timeout_ms
:u32
(milliseconds)
scroll_flick_mul
:f32
(unitless, applied each second)
scroll_flick_sub
:f32
(pixels per second)
pan_dist_thresh
:f32
(pixels)
mouse_pan
:MousePan
mouse_text_pan
:MousePan
mouse_nav_focus
:bool
touch_nav_focus
:bool
shortcuts
:Shortcuts
For descriptions of configuration effects, see WindowConfig
methods.
Fields
touch_select_delay_ms: u32
scroll_flick_timeout_ms: u32
scroll_flick_mul: f32
scroll_flick_sub: f32
scroll_dist_em: f32
pan_dist_thresh: f32
mouse_pan: MousePan
mouse_text_pan: MousePan
shortcuts: Shortcuts
is_dirty: bool
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<Config> for Config
impl PartialEq<Config> for Config
impl StructuralPartialEq for Config
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
sourcefn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
Try approximate conversion from Self
to T
Read more
sourcefn cast_approx(self) -> T
fn cast_approx(self) -> T
Cast approximately from Self
to T
Read more
sourceimpl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
sourcefn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
sourcefn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
sourcefn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
sourcefn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
sourcefn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
sourcefn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
sourcefn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more