web_sys/features/
gen_CssFontFeatureValuesRule.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "CssRule",
9 extends = "::js_sys::Object",
10 js_name = "CSSFontFeatureValuesRule",
11 typescript_type = "CSSFontFeatureValuesRule"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `CssFontFeatureValuesRule` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"]
19 pub type CssFontFeatureValuesRule;
20 #[wasm_bindgen(
21 method,
22 getter,
23 js_class = "CSSFontFeatureValuesRule",
24 js_name = "fontFamily"
25 )]
26 #[doc = "Getter for the `fontFamily` field of this object."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/fontFamily)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"]
31 pub fn font_family(this: &CssFontFeatureValuesRule) -> ::alloc::string::String;
32 #[wasm_bindgen(
33 method,
34 setter,
35 js_class = "CSSFontFeatureValuesRule",
36 js_name = "fontFamily"
37 )]
38 #[doc = "Setter for the `fontFamily` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/fontFamily)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"]
43 pub fn set_font_family(this: &CssFontFeatureValuesRule, value: &str);
44 #[wasm_bindgen(
45 method,
46 getter,
47 js_class = "CSSFontFeatureValuesRule",
48 js_name = "valueText"
49 )]
50 #[doc = "Getter for the `valueText` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/valueText)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"]
55 pub fn value_text(this: &CssFontFeatureValuesRule) -> ::alloc::string::String;
56 #[wasm_bindgen(
57 method,
58 setter,
59 js_class = "CSSFontFeatureValuesRule",
60 js_name = "valueText"
61 )]
62 #[doc = "Setter for the `valueText` field of this object."]
63 #[doc = ""]
64 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/valueText)"]
65 #[doc = ""]
66 #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"]
67 pub fn set_value_text(this: &CssFontFeatureValuesRule, value: &str);
68}