pub struct PopupState { /* private fields */ }Implementations§
Source§impl PopupState
Auto-generated by derive_getters::Getters.
impl PopupState
Auto-generated by derive_getters::Getters.
Source§impl PopupState
impl PopupState
Sourcepub fn move_right(&mut self, amount: u16)
pub fn move_right(&mut self, amount: u16)
Sourcepub fn mouse_down(&mut self, col: u16, row: u16)
pub fn mouse_down(&mut self, col: u16, row: u16)
Set the state to dragging if the mouse click is in the popup title
Sourcepub const fn mouse_drag(&mut self, col: u16, row: u16)
pub const fn mouse_drag(&mut self, col: u16, row: u16)
Move the popup if the state is dragging
Sourcepub fn handle_mouse_event(&mut self, event: MouseEvent)
pub fn handle_mouse_event(&mut self, event: MouseEvent)
Trait Implementations§
Source§impl Clone for PopupState
impl Clone for PopupState
Source§impl Debug for PopupState
impl Debug for PopupState
Auto Trait Implementations§
impl Freeze for PopupState
impl RefUnwindSafe for PopupState
impl Send for PopupState
impl Sync for PopupState
impl Unpin for PopupState
impl UnsafeUnpin for PopupState
impl UnwindSafe for PopupState
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,
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