tray_icon::menu

Enum NativeIcon

Source
pub enum NativeIcon {
Show 56 variants Add, Advanced, Bluetooth, Bookmarks, Caution, ColorPanel, ColumnView, Computer, EnterFullScreen, Everyone, ExitFullScreen, FlowView, Folder, FolderBurnable, FolderSmart, FollowLinkFreestanding, FontPanel, GoLeft, GoRight, Home, IChatTheater, IconView, Info, InvalidDataFreestanding, LeftFacingTriangle, ListView, LockLocked, LockUnlocked, MenuMixedState, MenuOnState, MobileMe, MultipleDocuments, Network, Path, PreferencesGeneral, QuickLook, RefreshFreestanding, Refresh, Remove, RevealFreestanding, RightFacingTriangle, Share, Slideshow, SmartBadge, StatusAvailable, StatusNone, StatusPartiallyAvailable, StatusUnavailable, StopProgressFreestanding, StopProgress, TrashEmpty, TrashFull, User, UserAccounts, UserGroup, UserGuest,
}
Expand description

A native Icon to be used for the menu item

§Platform-specific:

  • Windows / Linux: Unsupported.

Variants§

§

Add

An add item template image.

§

Advanced

Advanced preferences toolbar icon for the preferences window.

§

Bluetooth

A Bluetooth template image.

§

Bookmarks

Bookmarks image suitable for a template.

§

Caution

A caution image.

§

ColorPanel

A color panel toolbar icon.

§

ColumnView

A column view mode template image.

§

Computer

A computer icon.

§

EnterFullScreen

An enter full-screen mode template image.

§

Everyone

Permissions for all users.

§

ExitFullScreen

An exit full-screen mode template image.

§

FlowView

A cover flow view mode template image.

§

Folder

A folder image.

§

FolderBurnable

A burnable folder icon.

§

FolderSmart

A smart folder icon.

§

FollowLinkFreestanding

A link template image.

§

FontPanel

A font panel toolbar icon.

§

GoLeft

A go back template image.

§

GoRight

A go forward template image.

§

Home

Home image suitable for a template.

§

IChatTheater

An iChat Theater template image.

§

IconView

An icon view mode template image.

§

Info

An information toolbar icon.

§

InvalidDataFreestanding

A template image used to denote invalid data.

§

LeftFacingTriangle

A generic left-facing triangle template image.

§

ListView

A list view mode template image.

§

LockLocked

A locked padlock template image.

§

LockUnlocked

An unlocked padlock template image.

§

MenuMixedState

A horizontal dash, for use in menus.

§

MenuOnState

A check mark template image, for use in menus.

§

MobileMe

A MobileMe icon.

§

MultipleDocuments

A drag image for multiple items.

§

Network

A network icon.

§

Path

A path button template image.

§

PreferencesGeneral

General preferences toolbar icon for the preferences window.

§

QuickLook

A Quick Look template image.

§

RefreshFreestanding

A refresh template image.

§

Refresh

A refresh template image.

§

Remove

A remove item template image.

§

RevealFreestanding

A reveal contents template image.

§

RightFacingTriangle

A generic right-facing triangle template image.

§

Share

A share view template image.

§

Slideshow

A slideshow template image.

§

SmartBadge

A badge for a smart item.

§

StatusAvailable

Small green indicator, similar to iChat’s available image.

§

StatusNone

Small clear indicator.

§

StatusPartiallyAvailable

Small yellow indicator, similar to iChat’s idle image.

§

StatusUnavailable

Small red indicator, similar to iChat’s unavailable image.

§

StopProgressFreestanding

A stop progress template image.

§

StopProgress

A stop progress button template image.

§

TrashEmpty

An image of the empty trash can.

§

TrashFull

An image of the full trash can.

§

User

Permissions for a single user.

§

UserAccounts

User account toolbar icon for the preferences window.

§

UserGroup

Permissions for a group of users.

§

UserGuest

Permissions for guests.

Trait Implementations§

Source§

impl Clone for NativeIcon

Source§

fn clone(&self) -> NativeIcon

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NativeIcon

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PartialEq for NativeIcon

Source§

fn eq(&self, other: &NativeIcon) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for NativeIcon

Source§

impl Eq for NativeIcon

Source§

impl StructuralPartialEq for NativeIcon

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,