Enum cacao::image::MacSystemIcon
source · [−]pub enum MacSystemIcon {
PreferencesGeneral,
PreferencesAdvanced,
PreferencesUserAccounts,
Add,
Remove,
Folder,
}
Expand description
These icons are system-provided icons that are guaranteed to exist in all versions of macOS that Cacao supports. These will use SFSymbols on Big Sur and onwards (11.0+), and the correct controls for prior macOS versions.
Note that this list is by default small, as icons that match across OS’s is limited in nature. You’ll need to determine if and/or how you choose to support icons for systems older than Big Sur; SFSymbols does not exist on Catalina, Mojave, and earlier.
You can opt to include vector assets in your bundle, or draw icons with Image::draw
by
converting Core Graphics calls (e.g, PaintCode can work well for this).
Variants
PreferencesGeneral
A standard “General” preferences icon. This is intended for usage in Preferences toolbars.
PreferencesAdvanced
A standard “Advanced” preferences icon. This is intended for usage in Preferences toolbars.
PreferencesUserAccounts
A standard “Accounts” preferences icon. This is intended for usage in Preferences toolbars.
Add
Returns a stock “+” icon that’s common to the system. Use this for buttons that need the symbol.
Remove
A stock “-” icon that’s common to the system. Use this for buttons that need the symbol.
Folder
Returns a Folder icon.
Implementations
sourceimpl MacSystemIcon
impl MacSystemIcon
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MacSystemIcon
impl Send for MacSystemIcon
impl Sync for MacSystemIcon
impl Unpin for MacSystemIcon
impl UnwindSafe for MacSystemIcon
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more