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#[cfg(target_os = "macos")]
71mod internal;
72
73#[cfg(target_os = "macos")]
74pub use internal::apply_vibrancy;
75
76#[cfg(target_os = "macos")]
77pub use internal::clear_vibrancy;
78
79#[cfg(target_os = "macos")]
80mod ns_visual_effect_view_tagged;
81
82#[cfg(target_os = "macos")]
83pub use ns_visual_effect_view_tagged::NSVisualEffectViewTagged;