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. - Icon
Data - PNG image data for the icon of a
MenuNode::Item. - Item
- A
StatusNotifierItemand its menu. - Pixmap
- An icon image provided by an item.
- ToolTip
- The tooltip of an
Item.
Enums§
- Error
Kind - What went wrong for an
Error. - Event
- A change of an
Item, delivered through theevent_fnofHost::process_events. - Menu
Node - A node in the menu tree of an
Item. - Operation
- The operation an
Errororiginated from. - Scroll
Orientation - The direction of a
Host::item_scrollrequest. - Toggle
State - The toggle state of a
MenuNode::Item. - Toggle
Type - How a
MenuNode::Itemcan be toggled.