pub struct UiState {
mouse_pressed: bool,
scroll_delta: (f64, f64),
prev_pos: (u64, u64),
mouse_cursor: MouseCursor,
}Fields
mouse_pressed: boolscroll_delta: (f64, f64)prev_pos: (u64, u64)mouse_cursor: MouseCursorImplementations
sourceimpl UiState
impl UiState
pub fn new() -> UiState
fn apply_mouse_cursor(&mut self, cursor: MouseCursor, window: Option<Window>)
Auto Trait Implementations
impl RefUnwindSafe for UiState
impl Send for UiState
impl Sync for UiState
impl Unpin for UiState
impl UnwindSafe for UiState
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