Struct trayicon::TrayIcon[][src]

pub struct TrayIcon<T> where
    T: PartialEq + Clone + 'static, 
{ /* fields omitted */ }

Implementations

Set the icon if changed

Set the menu if changed

This can be used reactively, each time the application state changes, build a new menu and set it with this method. This way one can avoid using more imperative set_item_checkable, get_item_checkable and set_item_disabled methods.

Set the tooltip if changed

Set disabled

Prefer building a new menu if application state changes instead of mutating a menu with this method. Suggestion is to use just set_menu method instead of this.

Set checkable

Prefer building a new menu when application state changes instead of mutating a menu with this method. Suggestion is to use just set_menu method instead of this.

Get checkable state

Prefer maintaining proper application state instead of getting checkable state with this method. Suggestion is to use just set_menu method instead of this.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.