pub(super) struct ItemRowContextMenu {
pub(super) popover: PopoverMenu,
menu_model: Menu,
quick_reaction_chooser: QuickReactionChooser,
}
Expand description
Helper struct for the context menu of an ItemRow
.
Fields§
§popover: PopoverMenu
The popover of the context menu.
The menu model of the popover.
quick_reaction_chooser: QuickReactionChooser
The quick reaction chooser in the context menu.
Implementations§
Source§impl ItemRowContextMenu
impl ItemRowContextMenu
Sourceconst QUICK_REACTION_CHOOSER_ID: &str = "quick-reaction-chooser"
const QUICK_REACTION_CHOOSER_ID: &str = "quick-reaction-chooser"
The identifier in the context menu for the quick reaction chooser.
Sourcefn has_quick_reaction_chooser(&self) -> bool
fn has_quick_reaction_chooser(&self) -> bool
Whether the menu includes an item for the quick reaction chooser.
Sourcepub(super) fn add_quick_reaction_chooser(&self, reactions: ReactionList)
pub(super) fn add_quick_reaction_chooser(&self, reactions: ReactionList)
Add the quick reaction chooser to this menu, if it is not already present, and set the reaction list.
Sourcepub(super) fn remove_quick_reaction_chooser(&self)
pub(super) fn remove_quick_reaction_chooser(&self)
Remove the quick reaction chooser from this menu, if it is present.
Trait Implementations§
Source§impl Debug for ItemRowContextMenu
impl Debug for ItemRowContextMenu
Auto Trait Implementations§
impl Freeze for ItemRowContextMenu
impl !RefUnwindSafe for ItemRowContextMenu
impl !Send for ItemRowContextMenu
impl !Sync for ItemRowContextMenu
impl Unpin for ItemRowContextMenu
impl !UnwindSafe for ItemRowContextMenu
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, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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