pub struct TrayIconBuilder { /* private fields */ }Expand description
Builder for creating tray icons with custom internal window names.
Implementations§
Source§impl TrayIconBuilder
impl TrayIconBuilder
Sourcepub fn new(id: TrayIconId, tooltip: impl Into<String>) -> Self
pub fn new(id: TrayIconId, tooltip: impl Into<String>) -> Self
Create a new tray icon builder with default class and window names.
Sourcepub fn owner_window(self, owner: WindowHandle) -> Self
pub fn owner_window(self, owner: WindowHandle) -> Self
Bind the tray icon to an existing owner window.
When set, custom class and window names are ignored because this builder does not create an internal message-only window.
Sourcepub fn window_class_name(self, name: impl Into<String>) -> Self
pub fn window_class_name(self, name: impl Into<String>) -> Self
Set the class name used when creating an internal message-only tray window.
Sourcepub fn window_name(self, name: impl Into<String>) -> Self
pub fn window_name(self, name: impl Into<String>) -> Self
Set the window name used when creating an internal message-only tray window.
Trait Implementations§
Source§impl Clone for TrayIconBuilder
impl Clone for TrayIconBuilder
Source§fn clone(&self) -> TrayIconBuilder
fn clone(&self) -> TrayIconBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TrayIconBuilder
impl RefUnwindSafe for TrayIconBuilder
impl !Send for TrayIconBuilder
impl !Sync for TrayIconBuilder
impl Unpin for TrayIconBuilder
impl UnsafeUnpin for TrayIconBuilder
impl UnwindSafe for TrayIconBuilder
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