Skip to main content

web_sys/features/
gen_ScreenLuminance.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "ScreenLuminance",
10        typescript_type = "ScreenLuminance"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `ScreenLuminance` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"]
18    pub type ScreenLuminance;
19    #[wasm_bindgen(method, getter, js_class = "ScreenLuminance", js_name = "min")]
20    #[doc = "Getter for the `min` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance/min)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"]
25    pub fn min(this: &ScreenLuminance) -> f64;
26    #[wasm_bindgen(method, getter, js_class = "ScreenLuminance", js_name = "max")]
27    #[doc = "Getter for the `max` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance/max)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"]
32    pub fn max(this: &ScreenLuminance) -> f64;
33    #[wasm_bindgen(method, getter, js_class = "ScreenLuminance", js_name = "maxAverage")]
34    #[doc = "Getter for the `maxAverage` field of this object."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance/maxAverage)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"]
39    pub fn max_average(this: &ScreenLuminance) -> f64;
40}