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 (extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGraphicsElement , typescript_type = "SVGGraphicsElement")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `SvgGraphicsElement` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"]
14 pub type SvgGraphicsElement;
15 #[cfg(feature = "SvgAnimatedTransformList")]
16 # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = transform)]
17 #[doc = "Getter for the `transform` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/transform)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgGraphicsElement`*"]
22 pub fn transform(this: &SvgGraphicsElement) -> SvgAnimatedTransformList;
23 # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = nearestViewportElement)]
24 #[doc = "Getter for the `nearestViewportElement` field of this object."]
25 #[doc = ""]
26 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/nearestViewportElement)"]
27 #[doc = ""]
28 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"]
29 pub fn nearest_viewport_element(this: &SvgGraphicsElement) -> Option<SvgElement>;
30 # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = farthestViewportElement)]
31 #[doc = "Getter for the `farthestViewportElement` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/farthestViewportElement)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"]
36 pub fn farthest_viewport_element(this: &SvgGraphicsElement) -> Option<SvgElement>;
37 #[cfg(feature = "SvgStringList")]
38 # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = requiredFeatures)]
39 #[doc = "Getter for the `requiredFeatures` field of this object."]
40 #[doc = ""]
41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/requiredFeatures)"]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"]
44 pub fn required_features(this: &SvgGraphicsElement) -> SvgStringList;
45 #[cfg(feature = "SvgStringList")]
46 # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = requiredExtensions)]
47 #[doc = "Getter for the `requiredExtensions` field of this object."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/requiredExtensions)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"]
52 pub fn required_extensions(this: &SvgGraphicsElement) -> SvgStringList;
53 #[cfg(feature = "SvgStringList")]
54 # [wasm_bindgen (structural , method , getter , js_class = "SVGGraphicsElement" , js_name = systemLanguage)]
55 #[doc = "Getter for the `systemLanguage` field of this object."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/systemLanguage)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"]
60 pub fn system_language(this: &SvgGraphicsElement) -> SvgStringList;
61 #[cfg(feature = "SvgRect")]
62 # [wasm_bindgen (catch , method , structural , js_class = "SVGGraphicsElement" , js_name = getBBox)]
63 #[doc = "The `getBBox()` method."]
64 #[doc = ""]
65 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getBBox)"]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgRect`*"]
68 pub fn get_b_box(this: &SvgGraphicsElement) -> Result<SvgRect, JsValue>;
69 #[cfg(all(feature = "SvgBoundingBoxOptions", feature = "SvgRect",))]
70 # [wasm_bindgen (catch , method , structural , js_class = "SVGGraphicsElement" , js_name = getBBox)]
71 #[doc = "The `getBBox()` method."]
72 #[doc = ""]
73 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getBBox)"]
74 #[doc = ""]
75 #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`, `SvgGraphicsElement`, `SvgRect`*"]
76 pub fn get_b_box_with_a_options(
77 this: &SvgGraphicsElement,
78 a_options: &SvgBoundingBoxOptions,
79 ) -> Result<SvgRect, JsValue>;
80 #[cfg(feature = "SvgMatrix")]
81 # [wasm_bindgen (method , structural , js_class = "SVGGraphicsElement" , js_name = getCTM)]
82 #[doc = "The `getCTM()` method."]
83 #[doc = ""]
84 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getCTM)"]
85 #[doc = ""]
86 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"]
87 pub fn get_ctm(this: &SvgGraphicsElement) -> Option<SvgMatrix>;
88 #[cfg(feature = "SvgMatrix")]
89 # [wasm_bindgen (method , structural , js_class = "SVGGraphicsElement" , js_name = getScreenCTM)]
90 #[doc = "The `getScreenCTM()` method."]
91 #[doc = ""]
92 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getScreenCTM)"]
93 #[doc = ""]
94 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"]
95 pub fn get_screen_ctm(this: &SvgGraphicsElement) -> Option<SvgMatrix>;
96 #[cfg(feature = "SvgMatrix")]
97 # [wasm_bindgen (catch , method , structural , js_class = "SVGGraphicsElement" , js_name = getTransformToElement)]
98 #[doc = "The `getTransformToElement()` method."]
99 #[doc = ""]
100 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getTransformToElement)"]
101 #[doc = ""]
102 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"]
103 pub fn get_transform_to_element(
104 this: &SvgGraphicsElement,
105 element: &SvgGraphicsElement,
106 ) -> Result<SvgMatrix, JsValue>;
107 # [wasm_bindgen (method , structural , js_class = "SVGGraphicsElement" , js_name = hasExtension)]
108 #[doc = "The `hasExtension()` method."]
109 #[doc = ""]
110 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/hasExtension)"]
111 #[doc = ""]
112 #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"]
113 pub fn has_extension(this: &SvgGraphicsElement, extension: &str) -> bool;
114}