NSGlassEffectViewStyle

Enum NSGlassEffectViewStyle 

Source
#[repr(u64)]
pub enum NSGlassEffectViewStyle {
Show 24 variants Regular = 0, Clear = 1, Dock = 2, AppIcons = 3, Widgets = 4, Text = 5, AvPlayer = 6, FaceTime = 7, ControlCenter = 8, NotificationCenter = 9, Monogram = 10, Bubbles = 11, Identity = 12, FocusBorder = 13, FocusPlatter = 14, Keyboard = 15, Sidebar = 16, AbuttedSidebar = 17, Inspector = 18, Control = 19, Loupe = 20, Slider = 21, Camera = 22, CartouchePopover = 23,
}
Expand description

Note that only the first two variants Regular (0) and Clear (1) are officially supported, see https://developer.apple.com/documentation/appkit/nsglasseffectview/style-swift.enum.

All other variants use private macOS APIs and may change or break at any time.

Variants§

§

Regular = 0

macOS 26.0+

§

Clear = 1

macOS 26.0+

§

Dock = 2

macOS 26.0+

§

AppIcons = 3

macOS 26.0+

§

Widgets = 4

macOS 26.0+

§

Text = 5

macOS 26.0+

§

AvPlayer = 6

macOS 26.0+

§

FaceTime = 7

macOS 26.0+

§

ControlCenter = 8

macOS 26.0+

§

NotificationCenter = 9

macOS 26.0+

§

Monogram = 10

macOS 26.0+

§

Bubbles = 11

macOS 26.0+

§

Identity = 12

macOS 26.0+

§

FocusBorder = 13

macOS 26.0+

§

FocusPlatter = 14

macOS 26.0+

§

Keyboard = 15

macOS 26.0+

§

Sidebar = 16

macOS 26.0+

§

AbuttedSidebar = 17

macOS 26.0+

§

Inspector = 18

macOS 26.0+

§

Control = 19

macOS 26.0+

§

Loupe = 20

macOS 26.0+

§

Slider = 21

macOS 26.0+

§

Camera = 22

macOS 26.0+

§

CartouchePopover = 23

macOS 26.0+

Trait Implementations§

Source§

impl Clone for NSGlassEffectViewStyle

Source§

fn clone(&self) -> NSGlassEffectViewStyle

Returns a duplicate 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 NSGlassEffectViewStyle

Source§

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

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

impl PartialEq for NSGlassEffectViewStyle

Source§

fn eq(&self, other: &NSGlassEffectViewStyle) -> 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 NSGlassEffectViewStyle

Source§

impl StructuralPartialEq for NSGlassEffectViewStyle

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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.