pub struct MenuBarIds<Id> {
pub label: Id,
pub popup_content: Id,
pub popup_backdrop: Id,
}Expand description
The three Ids MenuBar::show needs.
One for the label row itself, and the two Menu::show needs internally for the popup it
opens (its own content, and the full-screen backdrop that closes it on an outside click).
Bundled into one argument rather than three separate ones so MenuBar::show itself stays
under the clippy argument-count lint its unbundled predecessor tripped.
Fields§
§label: IdIdentifies the label row for hit-testing.
popup_content: IdIdentifies the open popup’s own content region; see Menu::show.
popup_backdrop: IdIdentifies the open popup’s full-screen backdrop; see Menu::show.
Trait Implementations§
Source§impl<Id: Clone> Clone for MenuBarIds<Id>
impl<Id: Clone> Clone for MenuBarIds<Id>
Source§fn clone(&self) -> MenuBarIds<Id>
fn clone(&self) -> MenuBarIds<Id>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<Id: Copy> Copy for MenuBarIds<Id>
Source§impl<Id: Debug> Debug for MenuBarIds<Id>
impl<Id: Debug> Debug for MenuBarIds<Id>
impl<Id: Eq> Eq for MenuBarIds<Id>
Source§impl<Id: PartialEq> PartialEq for MenuBarIds<Id>
impl<Id: PartialEq> PartialEq for MenuBarIds<Id>
Source§fn eq(&self, other: &MenuBarIds<Id>) -> bool
fn eq(&self, other: &MenuBarIds<Id>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<Id: PartialEq> StructuralPartialEq for MenuBarIds<Id>
Auto Trait Implementations§
impl<Id> Freeze for MenuBarIds<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for MenuBarIds<Id>where
Id: RefUnwindSafe,
impl<Id> Send for MenuBarIds<Id>where
Id: Send,
impl<Id> Sync for MenuBarIds<Id>where
Id: Sync,
impl<Id> Unpin for MenuBarIds<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for MenuBarIds<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for MenuBarIds<Id>where
Id: UnwindSafe,
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,
§impl<C> WithAlpha for Cwhere
C: Copy,
impl<C> WithAlpha for Cwhere
C: Copy,
§fn with_alpha_first<A>(self, alpha: A) -> AlphaFirst<A, Self>
fn with_alpha_first<A>(self, alpha: A) -> AlphaFirst<A, Self>
Wraps
self with alpha, storing alpha before the color in memory
(see [AlphaFirst]).§fn with_alpha_last<A>(self, alpha: A) -> AlphaLast<A, Self>
fn with_alpha_last<A>(self, alpha: A) -> AlphaLast<A, Self>
Wraps
self with alpha, storing alpha after the color in memory
(see [AlphaLast]).