web_sys/features/
gen_SvgPatternElement.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGPatternElement , typescript_type = "SVGPatternElement")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `SvgPatternElement` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `SvgPatternElement`*"]
14 pub type SvgPatternElement;
15 #[cfg(feature = "SvgAnimatedEnumeration")]
16 # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = patternUnits)]
17 #[doc = "Getter for the `patternUnits` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternUnits)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgPatternElement`*"]
22 pub fn pattern_units(this: &SvgPatternElement) -> SvgAnimatedEnumeration;
23 #[cfg(feature = "SvgAnimatedEnumeration")]
24 # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = patternContentUnits)]
25 #[doc = "Getter for the `patternContentUnits` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternContentUnits)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgPatternElement`*"]
30 pub fn pattern_content_units(this: &SvgPatternElement) -> SvgAnimatedEnumeration;
31 #[cfg(feature = "SvgAnimatedTransformList")]
32 # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = patternTransform)]
33 #[doc = "Getter for the `patternTransform` field of this object."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternTransform)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgPatternElement`*"]
38 pub fn pattern_transform(this: &SvgPatternElement) -> SvgAnimatedTransformList;
39 #[cfg(feature = "SvgAnimatedLength")]
40 # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = x)]
41 #[doc = "Getter for the `x` field of this object."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/x)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"]
46 pub fn x(this: &SvgPatternElement) -> SvgAnimatedLength;
47 #[cfg(feature = "SvgAnimatedLength")]
48 # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = y)]
49 #[doc = "Getter for the `y` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/y)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"]
54 pub fn y(this: &SvgPatternElement) -> SvgAnimatedLength;
55 #[cfg(feature = "SvgAnimatedLength")]
56 # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = width)]
57 #[doc = "Getter for the `width` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/width)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"]
62 pub fn width(this: &SvgPatternElement) -> SvgAnimatedLength;
63 #[cfg(feature = "SvgAnimatedLength")]
64 # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = height)]
65 #[doc = "Getter for the `height` field of this object."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/height)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"]
70 pub fn height(this: &SvgPatternElement) -> SvgAnimatedLength;
71 #[cfg(feature = "SvgAnimatedRect")]
72 # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = viewBox)]
73 #[doc = "Getter for the `viewBox` field of this object."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/viewBox)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgPatternElement`*"]
78 pub fn view_box(this: &SvgPatternElement) -> SvgAnimatedRect;
79 #[cfg(feature = "SvgAnimatedPreserveAspectRatio")]
80 # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = preserveAspectRatio)]
81 #[doc = "Getter for the `preserveAspectRatio` field of this object."]
82 #[doc = ""]
83 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/preserveAspectRatio)"]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgPatternElement`*"]
86 pub fn preserve_aspect_ratio(this: &SvgPatternElement) -> SvgAnimatedPreserveAspectRatio;
87 #[cfg(feature = "SvgAnimatedString")]
88 # [wasm_bindgen (structural , method , getter , js_class = "SVGPatternElement" , js_name = href)]
89 #[doc = "Getter for the `href` field of this object."]
90 #[doc = ""]
91 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/href)"]
92 #[doc = ""]
93 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgPatternElement`*"]
94 pub fn href(this: &SvgPatternElement) -> SvgAnimatedString;
95}