pub struct KeyContext {
pub inline: bool,
pub rtl: bool,
pub growth: f64,
pub current: f64,
pub min: f64,
pub max: f64,
pub step: f64,
pub restore: Option<f64>,
}Expand description
Everything a key press needs to know about the bar.
Fields§
§inline: boolThe bar moves along the inline axis (it is vertical).
rtl: boolThe bar sits in right-to-left text.
growth: f64+1 when moving the bar toward the end of its axis grows the controlled pane.
current: f64The current value.
min: f64Lower bound.
max: f64Upper bound.
step: f64One arrow press; Shift moves ten times as far.
restore: Option<f64>The size Enter restores from the minimum, if one is remembered.
Trait Implementations§
Source§impl Clone for KeyContext
impl Clone for KeyContext
impl Copy for KeyContext
Source§impl Debug for KeyContext
impl Debug for KeyContext
Source§impl PartialEq for KeyContext
impl PartialEq for KeyContext
impl StructuralPartialEq for KeyContext
Auto Trait Implementations§
impl Freeze for KeyContext
impl RefUnwindSafe for KeyContext
impl Send for KeyContext
impl Sync for KeyContext
impl Unpin for KeyContext
impl UnsafeUnpin for KeyContext
impl UnwindSafe for KeyContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.