Skip to main content

web_sys/features/
gen_SvgMaskElement.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 = "SvgElement",
9        extends = "Element",
10        extends = "Node",
11        extends = "EventTarget",
12        extends = "::js_sys::Object",
13        js_name = "SVGMaskElement",
14        typescript_type = "SVGMaskElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `SvgMaskElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `SvgMaskElement`*"]
22    pub type SvgMaskElement;
23    #[cfg(feature = "SvgAnimatedEnumeration")]
24    #[wasm_bindgen(method, getter, js_class = "SVGMaskElement", js_name = "maskUnits")]
25    #[doc = "Getter for the `maskUnits` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/maskUnits)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMaskElement`*"]
30    pub fn mask_units(this: &SvgMaskElement) -> SvgAnimatedEnumeration;
31    #[cfg(feature = "SvgAnimatedEnumeration")]
32    #[wasm_bindgen(
33        method,
34        getter,
35        js_class = "SVGMaskElement",
36        js_name = "maskContentUnits"
37    )]
38    #[doc = "Getter for the `maskContentUnits` field of this object."]
39    #[doc = ""]
40    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/maskContentUnits)"]
41    #[doc = ""]
42    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMaskElement`*"]
43    pub fn mask_content_units(this: &SvgMaskElement) -> SvgAnimatedEnumeration;
44    #[cfg(feature = "SvgAnimatedLength")]
45    #[wasm_bindgen(method, getter, js_class = "SVGMaskElement", js_name = "x")]
46    #[doc = "Getter for the `x` field of this object."]
47    #[doc = ""]
48    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/x)"]
49    #[doc = ""]
50    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"]
51    pub fn x(this: &SvgMaskElement) -> SvgAnimatedLength;
52    #[cfg(feature = "SvgAnimatedLength")]
53    #[wasm_bindgen(method, getter, js_class = "SVGMaskElement", js_name = "y")]
54    #[doc = "Getter for the `y` field of this object."]
55    #[doc = ""]
56    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/y)"]
57    #[doc = ""]
58    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"]
59    pub fn y(this: &SvgMaskElement) -> SvgAnimatedLength;
60    #[cfg(feature = "SvgAnimatedLength")]
61    #[wasm_bindgen(method, getter, js_class = "SVGMaskElement", js_name = "width")]
62    #[doc = "Getter for the `width` field of this object."]
63    #[doc = ""]
64    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/width)"]
65    #[doc = ""]
66    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"]
67    pub fn width(this: &SvgMaskElement) -> SvgAnimatedLength;
68    #[cfg(feature = "SvgAnimatedLength")]
69    #[wasm_bindgen(method, getter, js_class = "SVGMaskElement", js_name = "height")]
70    #[doc = "Getter for the `height` field of this object."]
71    #[doc = ""]
72    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/height)"]
73    #[doc = ""]
74    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"]
75    pub fn height(this: &SvgMaskElement) -> SvgAnimatedLength;
76}
77impl SvgMaskElement {
78    #[doc = "The `SVGMaskElement.SVG_MASKTYPE_LUMINANCE` const."]
79    #[doc = ""]
80    #[doc = "*This API requires the following crate features to be activated: `SvgMaskElement`*"]
81    pub const SVG_MASKTYPE_LUMINANCE: u16 = 0i64 as u16;
82    #[doc = "The `SVGMaskElement.SVG_MASKTYPE_ALPHA` const."]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `SvgMaskElement`*"]
85    pub const SVG_MASKTYPE_ALPHA: u16 = 1u64 as u16;
86}