Skip to main content

web_sys/features/
gen_SvgPatternElement.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 = "SVGPatternElement",
14        typescript_type = "SVGPatternElement"
15    )]
16    #[derive(Debug, Clone, PartialEq, Eq)]
17    #[doc = "The `SvgPatternElement` class."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `SvgPatternElement`*"]
22    pub type SvgPatternElement;
23    #[cfg(feature = "SvgAnimatedEnumeration")]
24    #[wasm_bindgen(
25        method,
26        getter,
27        js_class = "SVGPatternElement",
28        js_name = "patternUnits"
29    )]
30    #[doc = "Getter for the `patternUnits` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternUnits)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgPatternElement`*"]
35    pub fn pattern_units(this: &SvgPatternElement) -> SvgAnimatedEnumeration;
36    #[cfg(feature = "SvgAnimatedEnumeration")]
37    #[wasm_bindgen(
38        method,
39        getter,
40        js_class = "SVGPatternElement",
41        js_name = "patternContentUnits"
42    )]
43    #[doc = "Getter for the `patternContentUnits` field of this object."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternContentUnits)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgPatternElement`*"]
48    pub fn pattern_content_units(this: &SvgPatternElement) -> SvgAnimatedEnumeration;
49    #[cfg(feature = "SvgAnimatedTransformList")]
50    #[wasm_bindgen(
51        method,
52        getter,
53        js_class = "SVGPatternElement",
54        js_name = "patternTransform"
55    )]
56    #[doc = "Getter for the `patternTransform` field of this object."]
57    #[doc = ""]
58    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternTransform)"]
59    #[doc = ""]
60    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgPatternElement`*"]
61    pub fn pattern_transform(this: &SvgPatternElement) -> SvgAnimatedTransformList;
62    #[cfg(feature = "SvgAnimatedLength")]
63    #[wasm_bindgen(method, getter, js_class = "SVGPatternElement", js_name = "x")]
64    #[doc = "Getter for the `x` field of this object."]
65    #[doc = ""]
66    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/x)"]
67    #[doc = ""]
68    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"]
69    pub fn x(this: &SvgPatternElement) -> SvgAnimatedLength;
70    #[cfg(feature = "SvgAnimatedLength")]
71    #[wasm_bindgen(method, getter, js_class = "SVGPatternElement", js_name = "y")]
72    #[doc = "Getter for the `y` field of this object."]
73    #[doc = ""]
74    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/y)"]
75    #[doc = ""]
76    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"]
77    pub fn y(this: &SvgPatternElement) -> SvgAnimatedLength;
78    #[cfg(feature = "SvgAnimatedLength")]
79    #[wasm_bindgen(method, getter, js_class = "SVGPatternElement", js_name = "width")]
80    #[doc = "Getter for the `width` field of this object."]
81    #[doc = ""]
82    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/width)"]
83    #[doc = ""]
84    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"]
85    pub fn width(this: &SvgPatternElement) -> SvgAnimatedLength;
86    #[cfg(feature = "SvgAnimatedLength")]
87    #[wasm_bindgen(method, getter, js_class = "SVGPatternElement", js_name = "height")]
88    #[doc = "Getter for the `height` field of this object."]
89    #[doc = ""]
90    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/height)"]
91    #[doc = ""]
92    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"]
93    pub fn height(this: &SvgPatternElement) -> SvgAnimatedLength;
94    #[cfg(feature = "SvgAnimatedRect")]
95    #[wasm_bindgen(method, getter, js_class = "SVGPatternElement", js_name = "viewBox")]
96    #[doc = "Getter for the `viewBox` field of this object."]
97    #[doc = ""]
98    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/viewBox)"]
99    #[doc = ""]
100    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgPatternElement`*"]
101    pub fn view_box(this: &SvgPatternElement) -> SvgAnimatedRect;
102    #[cfg(feature = "SvgAnimatedPreserveAspectRatio")]
103    #[wasm_bindgen(
104        method,
105        getter,
106        js_class = "SVGPatternElement",
107        js_name = "preserveAspectRatio"
108    )]
109    #[doc = "Getter for the `preserveAspectRatio` field of this object."]
110    #[doc = ""]
111    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/preserveAspectRatio)"]
112    #[doc = ""]
113    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgPatternElement`*"]
114    pub fn preserve_aspect_ratio(this: &SvgPatternElement) -> SvgAnimatedPreserveAspectRatio;
115    #[cfg(feature = "SvgAnimatedString")]
116    #[wasm_bindgen(method, getter, js_class = "SVGPatternElement", js_name = "href")]
117    #[doc = "Getter for the `href` field of this object."]
118    #[doc = ""]
119    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/href)"]
120    #[doc = ""]
121    #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgPatternElement`*"]
122    pub fn href(this: &SvgPatternElement) -> SvgAnimatedString;
123}