pub struct InputState {
selecting: bool,
scrollbar_dragging: bool,
last_scrollbar_drag_tick: u64,
last_mouse_render_tick: u64,
pending_scrollbar_drag_y: Option<usize>,
pending_selection_pos: Option<(usize, usize)>,
pending_mouse_cursor: Option<(i32, i32)>,
pending_scroll_delta: i32,
}Expand description
Renderer-owned state carried across ticks; identical to the state the mouse task used to keep locally.
Fields§
§selecting: bool§scrollbar_dragging: bool§last_scrollbar_drag_tick: u64§last_mouse_render_tick: u64§pending_scrollbar_drag_y: Option<usize>§pending_selection_pos: Option<(usize, usize)>§pending_mouse_cursor: Option<(i32, i32)>§pending_scroll_delta: i32Implementations§
Source§impl InputState
impl InputState
Auto Trait Implementations§
impl Forget for InputState
impl Freeze for InputState
impl Move for InputState
impl RefUnwindSafe for InputState
impl Send for InputState
impl Sync for InputState
impl Unpin for InputState
impl UnsafeUnpin for InputState
impl UnwindSafe for InputState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more