ferroui_controls/
acrylic_platform_compensation_levels.rs1#[derive(Clone, Copy, Debug, Default, PartialEq)]
4pub struct AcrylicPlatformCompensationLevels {
5 transparent_level: f64,
6 blur_level: f64,
7 acrylic_blur_level: f64,
8}
9
10impl AcrylicPlatformCompensationLevels {
11 pub const fn new(transparent: f64, blurred: f64, acrylic: f64) -> Self {
13 Self { transparent_level: transparent, blur_level: blurred, acrylic_blur_level: acrylic }
14 }
15
16 pub const fn transparent_level(&self) -> f64 {
18 self.transparent_level
19 }
20
21 pub const fn blur_level(&self) -> f64 {
23 self.blur_level
24 }
25
26 pub const fn acrylic_blur_level(&self) -> f64 {
28 self.acrylic_blur_level
29 }
30}