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