pub struct PopupMenu { /* private fields */ }
Available on crate feature
ui
only.Expand description
A popup menu for use with crate::ui::NotificationIcon
.
Implementations§
Source§impl PopupMenu
impl PopupMenu
pub fn new() -> Result<Self>
Inserts a menu item.
If no index is given, it will be inserted after the last item.
Shows the popup menu at the given coordinates.
The coordinates can for example be retrieved from the window message handler, see crate::ui::messaging::WindowMessageListener::handle_notification_icon_context_select
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PopupMenu
impl RefUnwindSafe for PopupMenu
impl !Send for PopupMenu
impl !Sync for PopupMenu
impl Unpin for PopupMenu
impl UnwindSafe for PopupMenu
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