pub struct Item {
pub id: String,
pub title: String,
pub tooltip: String,
pub icon_name: String,
pub icon_theme_path: String,
pub icon_pixmaps: Vec<Pixmap>,
pub status: Status,
pub category: Category,
pub item_is_menu: bool,
}Expand description
The item’s description.
Fields§
§id: StringA stable identifier for the item, such as the app id.
title: StringThe item’s title (shown by some hosts, and read by screen readers).
tooltip: StringThe tooltip text; empty uses the title.
icon_name: StringA freedesktop icon theme name; hosts prefer it over pixmaps when they find it.
icon_theme_path: StringExtra directory searched for icon_name, or empty.
icon_pixmaps: Vec<Pixmap>The icon at several sizes, for hosts without the theme icon.
status: StatusActive, passive or needs-attention.
category: CategoryThe item’s category.
Whether a primary click opens the menu instead of sending Event::Activate.
Trait Implementations§
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Forget for Item
impl Freeze for Item
impl Move for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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