window_vibrancy/macos/
mod.rs1#[repr(u64)]
9#[derive(Clone, Copy, Debug, PartialEq)]
10pub enum NSVisualEffectMaterial {
11 #[deprecated(
12 since = "macOS 10.14",
13 note = "A default material appropriate for the view's effectiveAppearance. You should instead choose an appropriate semantic material."
14 )]
15 AppearanceBased = 0,
16 #[deprecated(since = "macOS 10.14", note = "Use a semantic material instead.")]
17 Light = 1,
18 #[deprecated(since = "macOS 10.14", note = "Use a semantic material instead.")]
19 Dark = 2,
20 #[deprecated(since = "macOS 10.14", note = "Use a semantic material instead.")]
21 MediumLight = 8,
22 #[deprecated(since = "macOS 10.14", note = "Use a semantic material instead.")]
23 UltraDark = 9,
24
25 Titlebar = 3,
27 Selection = 4,
29
30 Menu = 5,
32 Popover = 6,
34 Sidebar = 7,
36
37 HeaderView = 10,
39 Sheet = 11,
41 WindowBackground = 12,
43 HudWindow = 13,
45 FullScreenUI = 15,
47 Tooltip = 17,
49 ContentBackground = 18,
51 UnderWindowBackground = 21,
53 UnderPageBackground = 22,
55}
56
57#[allow(dead_code)]
59#[repr(u64)]
60#[derive(Clone, Copy, Debug, PartialEq)]
61pub enum NSVisualEffectState {
62 FollowsWindowActiveState = 0,
64 Active = 1,
66 Inactive = 2,
68}
69
70#[repr(u64)]
76#[derive(Clone, Copy, Debug, PartialEq)]
77pub enum NSGlassEffectViewStyle {
78 Regular = 0,
80 Clear = 1,
82 Dock = 2,
84 AppIcons = 3,
86 Widgets = 4,
88 Text = 5,
90 AvPlayer = 6,
92 FaceTime = 7,
94 ControlCenter = 8,
96 NotificationCenter = 9,
98 Monogram = 10,
100 Bubbles = 11,
102 Identity = 12,
104 FocusBorder = 13,
106 FocusPlatter = 14,
108 Keyboard = 15,
110 Sidebar = 16,
112 AbuttedSidebar = 17,
114 Inspector = 18,
116 Control = 19,
118 Loupe = 20,
120 Slider = 21,
122 Camera = 22,
124 CartouchePopover = 23,
126}
127
128#[cfg(target_os = "macos")]
129mod vibrancy;
130
131#[cfg(target_os = "macos")]
132pub use vibrancy::{apply_vibrancy, clear_vibrancy};
133
134#[cfg(target_os = "macos")]
135mod ns_visual_effect_view_tagged;
136
137#[cfg(target_os = "macos")]
138pub use ns_visual_effect_view_tagged::NSVisualEffectViewTagged;
139
140#[cfg(target_os = "macos")]
142mod liquid_glass;
143
144#[cfg(target_os = "macos")]
145pub use liquid_glass::{apply_liquid_glass, clear_liquid_glass};
146
147#[cfg(target_os = "macos")]
148mod ns_glass_effect_view_tagged;
149
150#[cfg(target_os = "macos")]
151pub use ns_glass_effect_view_tagged::NSGlassEffectViewTagged;