pub struct PopupState { /* private fields */ }
Implementations§
Source§impl PopupState
impl PopupState
Auto-generated by derive_getters::Getters
.
Source§impl PopupState
impl PopupState
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 fn mouse_drag(&mut self, col: u16, row: u16)
pub fn mouse_drag(&mut self, col: u16, row: u16)
Move the popup if the state is dragging
Trait Implementations§
Source§impl Clone for PopupState
impl Clone for PopupState
Source§fn clone(&self) -> PopupState
fn clone(&self) -> PopupState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PopupState
impl Debug for PopupState
Source§impl Default for PopupState
impl Default for PopupState
Source§fn default() -> PopupState
fn default() -> PopupState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PopupState
impl RefUnwindSafe for PopupState
impl Send for PopupState
impl Sync for PopupState
impl Unpin 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