pub struct TrayIconImpl { /* private fields */ }Expand description
A status bar (tray) icon.
Trait Implementations§
Source§impl IDisposable for TrayIconImpl
impl IDisposable for TrayIconImpl
Source§impl ITrayIconImpl for TrayIconImpl
impl ITrayIconImpl for TrayIconImpl
Source§fn set_tool_tip_text(&self, text: Option<&str>)
fn set_tool_tip_text(&self, text: Option<&str>)
Sets the tooltip text of this tray icon.
Source§fn set_is_visible(&self, visible: bool)
fn set_is_visible(&self, visible: bool)
Sets if the tray icon is visible or not.
Gets the menu exporter of this tray icon.
Source§fn on_clicked(&self) -> Option<Rc<dyn Fn()>>
fn on_clicked(&self) -> Option<Rc<dyn Fn()>>
Gets the action that is called when the tray icon is clicked.
Source§fn set_on_clicked(&self, value: Option<Rc<dyn Fn()>>)
fn set_on_clicked(&self, value: Option<Rc<dyn Fn()>>)
Sets the action that is called when the tray icon is clicked.
Source§fn as_tray_icon_with_is_template_impl(
&self,
) -> Option<&dyn ITrayIconWithIsTemplateImpl>
fn as_tray_icon_with_is_template_impl( &self, ) -> Option<&dyn ITrayIconWithIsTemplateImpl>
The tray icon viewed as one whose icon can be marked as a template
icon, when the implementation supports that.
Source§impl ITrayIconWithIsTemplateImpl for TrayIconImpl
impl ITrayIconWithIsTemplateImpl for TrayIconImpl
Source§fn set_is_template_icon(&self, is_template_icon: bool)
fn set_is_template_icon(&self, is_template_icon: bool)
Sets if the tray icon has a template/monochrome icon or not.
Auto Trait Implementations§
impl !Freeze for TrayIconImpl
impl !RefUnwindSafe for TrayIconImpl
impl !Send for TrayIconImpl
impl !Sync for TrayIconImpl
impl !UnwindSafe for TrayIconImpl
impl Unpin for TrayIconImpl
impl UnsafeUnpin for TrayIconImpl
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more