pub struct SysTrayItem {
pub item_type: SysTrayItemType,
pub label: String,
pub tooltip: String,
pub visible: bool,
pub width: usize,
}Expand description
A single item in the system tray.
Fields§
§item_type: SysTrayItemTypeWhat kind of tray item this is.
label: StringDisplay label (rendered text).
tooltip: StringTooltip text (for future hover support).
visible: boolWhether this item is currently visible.
width: usizeWidth of this item in pixels (based on label length).
Implementations§
Source§impl SysTrayItem
impl SysTrayItem
Sourcepub fn new(item_type: SysTrayItemType, label: &str, tooltip: &str) -> Self
pub fn new(item_type: SysTrayItemType, label: &str, tooltip: &str) -> Self
Create a new tray item with auto-calculated width.
Trait Implementations§
Source§impl Clone for SysTrayItem
impl Clone for SysTrayItem
Source§fn clone(&self) -> SysTrayItem
fn clone(&self) -> SysTrayItem
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SysTrayItem
impl RefUnwindSafe for SysTrayItem
impl Send for SysTrayItem
impl Sync for SysTrayItem
impl Unpin for SysTrayItem
impl UnwindSafe for SysTrayItem
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)