web_sys/features/
gen_SvgGraphicsElement.rs1#![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 = "SVGGraphicsElement",
14 typescript_type = "SVGGraphicsElement"
15 )]
16 #[derive(Debug, Clone, PartialEq, Eq)]
17 #[doc = "The `SvgGraphicsElement` class."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"]
22 pub type SvgGraphicsElement;
23 #[cfg(feature = "SvgAnimatedTransformList")]
24 #[wasm_bindgen(method, getter, js_class = "SVGGraphicsElement", js_name = "transform")]
25 #[doc = "Getter for the `transform` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/transform)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgGraphicsElement`*"]
30 pub fn transform(this: &SvgGraphicsElement) -> SvgAnimatedTransformList;
31 #[wasm_bindgen(
32 method,
33 getter,
34 js_class = "SVGGraphicsElement",
35 js_name = "nearestViewportElement"
36 )]
37 #[doc = "Getter for the `nearestViewportElement` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/nearestViewportElement)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"]
42 pub fn nearest_viewport_element(this: &SvgGraphicsElement) -> Option<SvgElement>;
43 #[wasm_bindgen(
44 method,
45 getter,
46 js_class = "SVGGraphicsElement",
47 js_name = "farthestViewportElement"
48 )]
49 #[doc = "Getter for the `farthestViewportElement` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/farthestViewportElement)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"]
54 pub fn farthest_viewport_element(this: &SvgGraphicsElement) -> Option<SvgElement>;
55 #[cfg(feature = "SvgStringList")]
56 #[wasm_bindgen(
57 method,
58 getter,
59 js_class = "SVGGraphicsElement",
60 js_name = "requiredFeatures"
61 )]
62 #[doc = "Getter for the `requiredFeatures` field of this object."]
63 #[doc = ""]
64 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/requiredFeatures)"]
65 #[doc = ""]
66 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"]
67 pub fn required_features(this: &SvgGraphicsElement) -> SvgStringList;
68 #[cfg(feature = "SvgStringList")]
69 #[wasm_bindgen(
70 method,
71 getter,
72 js_class = "SVGGraphicsElement",
73 js_name = "requiredExtensions"
74 )]
75 #[doc = "Getter for the `requiredExtensions` field of this object."]
76 #[doc = ""]
77 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/requiredExtensions)"]
78 #[doc = ""]
79 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"]
80 pub fn required_extensions(this: &SvgGraphicsElement) -> SvgStringList;
81 #[cfg(feature = "SvgStringList")]
82 #[wasm_bindgen(
83 method,
84 getter,
85 js_class = "SVGGraphicsElement",
86 js_name = "systemLanguage"
87 )]
88 #[doc = "Getter for the `systemLanguage` field of this object."]
89 #[doc = ""]
90 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/systemLanguage)"]
91 #[doc = ""]
92 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"]
93 pub fn system_language(this: &SvgGraphicsElement) -> SvgStringList;
94 #[cfg(feature = "SvgRect")]
95 #[wasm_bindgen(catch, method, js_class = "SVGGraphicsElement", js_name = "getBBox")]
96 #[doc = "The `getBBox()` method."]
97 #[doc = ""]
98 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getBBox)"]
99 #[doc = ""]
100 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgRect`*"]
101 pub fn get_b_box(this: &SvgGraphicsElement) -> Result<SvgRect, JsValue>;
102 #[cfg(all(feature = "SvgBoundingBoxOptions", feature = "SvgRect",))]
103 #[wasm_bindgen(catch, method, js_class = "SVGGraphicsElement", js_name = "getBBox")]
104 #[doc = "The `getBBox()` method."]
105 #[doc = ""]
106 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getBBox)"]
107 #[doc = ""]
108 #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`, `SvgGraphicsElement`, `SvgRect`*"]
109 pub fn get_b_box_with_a_options(
110 this: &SvgGraphicsElement,
111 a_options: &SvgBoundingBoxOptions,
112 ) -> Result<SvgRect, JsValue>;
113 #[cfg(feature = "SvgMatrix")]
114 #[wasm_bindgen(method, js_class = "SVGGraphicsElement", js_name = "getCTM")]
115 #[doc = "The `getCTM()` method."]
116 #[doc = ""]
117 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getCTM)"]
118 #[doc = ""]
119 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"]
120 pub fn get_ctm(this: &SvgGraphicsElement) -> Option<SvgMatrix>;
121 #[cfg(feature = "SvgMatrix")]
122 #[wasm_bindgen(method, js_class = "SVGGraphicsElement", js_name = "getScreenCTM")]
123 #[doc = "The `getScreenCTM()` method."]
124 #[doc = ""]
125 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getScreenCTM)"]
126 #[doc = ""]
127 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"]
128 pub fn get_screen_ctm(this: &SvgGraphicsElement) -> Option<SvgMatrix>;
129 #[cfg(feature = "SvgMatrix")]
130 #[wasm_bindgen(
131 catch,
132 method,
133 js_class = "SVGGraphicsElement",
134 js_name = "getTransformToElement"
135 )]
136 #[doc = "The `getTransformToElement()` method."]
137 #[doc = ""]
138 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getTransformToElement)"]
139 #[doc = ""]
140 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"]
141 pub fn get_transform_to_element(
142 this: &SvgGraphicsElement,
143 element: &SvgGraphicsElement,
144 ) -> Result<SvgMatrix, JsValue>;
145 #[wasm_bindgen(method, js_class = "SVGGraphicsElement", js_name = "hasExtension")]
146 #[doc = "The `hasExtension()` method."]
147 #[doc = ""]
148 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/hasExtension)"]
149 #[doc = ""]
150 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"]
151 pub fn has_extension(this: &SvgGraphicsElement, extension: &str) -> bool;
152}