Struct trayicon::TrayIcon [−][src]
Implementations
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 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.