Struct rat_widget::popup_menu::RPopupMenuState
source · pub struct RPopupMenuState {
pub focus: FocusFlag,
pub widget: PopupMenuState,
pub z_areas: [ZRect; 1],
pub non_exhaustive: NonExhaustive,
}Expand description
Popup menu state.
Fields§
§focus: FocusFlag§widget: PopupMenuState§z_areas: [ZRect; 1]§non_exhaustive: NonExhaustiveImplementations§
source§impl RPopupMenuState
impl RPopupMenuState
sourcepub fn flip_active(&mut self)
pub fn flip_active(&mut self)
Show the popup.
sourcepub fn set_active(&self, active: bool)
pub fn set_active(&self, active: bool)
Show the popup.
source§impl RPopupMenuState
impl RPopupMenuState
Select by hotkey
Trait Implementations§
source§impl Clone for RPopupMenuState
impl Clone for RPopupMenuState
source§fn clone(&self) -> RPopupMenuState
fn clone(&self) -> RPopupMenuState
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 RPopupMenuState
impl Debug for RPopupMenuState
source§impl Default for RPopupMenuState
impl Default for RPopupMenuState
source§impl HandleEvent<Event, MouseOnly, MenuOutcome> for RPopupMenuState
impl HandleEvent<Event, MouseOnly, MenuOutcome> for RPopupMenuState
source§impl HandleEvent<Event, Popup, MenuOutcome> for RPopupMenuState
impl HandleEvent<Event, Popup, MenuOutcome> for RPopupMenuState
source§impl HasFocusFlag for RPopupMenuState
impl HasFocusFlag for RPopupMenuState
The widget is focusable, but doesn’t want to partake
in keyboard navigation.
source§fn is_focused(&self) -> bool
fn is_focused(&self) -> bool
Focused?
source§fn lost_focus(&self) -> bool
fn lost_focus(&self) -> bool
Just lost focus.
source§fn gained_focus(&self) -> bool
fn gained_focus(&self) -> bool
Just gained focus.
Auto Trait Implementations§
impl !Freeze for RPopupMenuState
impl !RefUnwindSafe for RPopupMenuState
impl Send for RPopupMenuState
impl !Sync for RPopupMenuState
impl Unpin for RPopupMenuState
impl UnwindSafe for RPopupMenuState
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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