Skip to main content

Crate status_notifier

Crate status_notifier 

Source
Expand description

A StatusNotifierHost for building system trays and similar applications.

Host connects to the session bus, registers a StatusNotifierHost (and a built-in StatusNotifierWatcher if not already present), and keeps track of every registered item along with its menu. Changes are delivered as Events through Host::process_events, and items are interacted with through the item_* and menu_* methods.

See the blocking and polling examples for usage.

Structs§

Error
The error type used throughout the library.
Host
The main object representing a StatusNotifierHost.
IconData
PNG image data for the icon of a MenuNode::Item.
Item
A StatusNotifierItem and its menu.
Pixmap
An icon image provided by an item.
ToolTip
The tooltip of an Item.

Enums§

ErrorKind
What went wrong for an Error.
Event
A change of an Item, delivered through the event_fn of Host::process_events.
MenuNode
A node in the menu tree of an Item.
Operation
The operation an Error originated from.
ScrollOrientation
The direction of a Host::item_scroll request.
ToggleState
The toggle state of a MenuNode::Item.
ToggleType
How a MenuNode::Item can be toggled.