pub struct NotificationIcon { /* private fields */ }Available on crate feature
ui only.Expand description
An icon in the Windows notification area.
This icon is always associated with a window and can be used in conjunction with crate::ui::menu::SubMenu.
Implementations§
Source§impl NotificationIcon
impl NotificationIcon
pub fn get_bounding_rectangle(&self) -> Result<Rectangle>
Allows showing or hiding the icon in the notification area.
Sourcepub fn set_tooltip_text(&mut self, text: &str) -> Result<()>
pub fn set_tooltip_text(&mut self, text: &str) -> Result<()>
Sets the tooltip text when hovering over the icon with the mouse.
Sourcepub fn set_balloon_notification(
&mut self,
notification: Option<BalloonNotification<'_>>,
) -> Result<()>
pub fn set_balloon_notification( &mut self, notification: Option<BalloonNotification<'_>>, ) -> Result<()>
Triggers a balloon notification above the notification icon.
Trait Implementations§
Source§impl Debug for NotificationIcon
impl Debug for NotificationIcon
Auto Trait Implementations§
impl Freeze for NotificationIcon
impl RefUnwindSafe for NotificationIcon
impl !Send for NotificationIcon
impl !Sync for NotificationIcon
impl Unpin for NotificationIcon
impl UnwindSafe for NotificationIcon
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