pub struct TrayIconConfig {
pub id: Option<String>,
pub icon_path: PathBuf,
pub icon_as_template: bool,
pub menu_on_left_click: bool,
pub title: Option<String>,
pub tooltip: Option<String>,
}
Expand description
Configuration for application tray icon.
See more: https://v2.tauri.app/reference/config/#trayiconconfig
Fields§
§id: Option<String>
Set an id for this tray icon so you can reference it later, defaults to main
.
icon_path: PathBuf
Path to the default icon to use for the tray icon.
Note: this stores the image in raw pixels to the final binary, so keep the icon size (width and height) small or else it’s going to bloat your final executable
icon_as_template: bool
A Boolean value that determines whether the image represents a template image on macOS.
A Boolean value that determines whether the menu should appear when the tray icon receives a left click on macOS.
title: Option<String>
Title for MacOS tray
tooltip: Option<String>
Tray icon tooltip on Windows and macOS
Trait Implementations§
Source§impl Clone for TrayIconConfig
impl Clone for TrayIconConfig
Source§fn clone(&self) -> TrayIconConfig
fn clone(&self) -> TrayIconConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TrayIconConfig
impl Debug for TrayIconConfig
Source§impl Default for TrayIconConfig
impl Default for TrayIconConfig
Source§fn default() -> TrayIconConfig
fn default() -> TrayIconConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrayIconConfig
impl<'de> Deserialize<'de> for TrayIconConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TrayIconConfig
impl PartialEq for TrayIconConfig
Source§impl Serialize for TrayIconConfig
impl Serialize for TrayIconConfig
impl Eq for TrayIconConfig
impl StructuralPartialEq for TrayIconConfig
Auto Trait Implementations§
impl Freeze for TrayIconConfig
impl RefUnwindSafe for TrayIconConfig
impl Send for TrayIconConfig
impl Sync for TrayIconConfig
impl Unpin for TrayIconConfig
impl UnwindSafe for TrayIconConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.