web_sys/features/
gen_SvgSymbolElement.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 = SVGSymbolElement , typescript_type = "SVGSymbolElement")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `SvgSymbolElement` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `SvgSymbolElement`*"]
14 pub type SvgSymbolElement;
15 #[cfg(feature = "SvgAnimatedRect")]
16 # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = viewBox)]
17 #[doc = "Getter for the `viewBox` field of this object."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/viewBox)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgSymbolElement`*"]
22 pub fn view_box(this: &SvgSymbolElement) -> SvgAnimatedRect;
23 #[cfg(feature = "SvgAnimatedPreserveAspectRatio")]
24 # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = preserveAspectRatio)]
25 #[doc = "Getter for the `preserveAspectRatio` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/preserveAspectRatio)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgSymbolElement`*"]
30 pub fn preserve_aspect_ratio(this: &SvgSymbolElement) -> SvgAnimatedPreserveAspectRatio;
31 #[cfg(feature = "SvgStringList")]
32 # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = requiredFeatures)]
33 #[doc = "Getter for the `requiredFeatures` field of this object."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/requiredFeatures)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`, `SvgSymbolElement`*"]
38 pub fn required_features(this: &SvgSymbolElement) -> SvgStringList;
39 #[cfg(feature = "SvgStringList")]
40 # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = requiredExtensions)]
41 #[doc = "Getter for the `requiredExtensions` field of this object."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/requiredExtensions)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`, `SvgSymbolElement`*"]
46 pub fn required_extensions(this: &SvgSymbolElement) -> SvgStringList;
47 #[cfg(feature = "SvgStringList")]
48 # [wasm_bindgen (structural , method , getter , js_class = "SVGSymbolElement" , js_name = systemLanguage)]
49 #[doc = "Getter for the `systemLanguage` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/systemLanguage)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `SvgStringList`, `SvgSymbolElement`*"]
54 pub fn system_language(this: &SvgSymbolElement) -> SvgStringList;
55 # [wasm_bindgen (method , structural , js_class = "SVGSymbolElement" , js_name = hasExtension)]
56 #[doc = "The `hasExtension()` method."]
57 #[doc = ""]
58 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/hasExtension)"]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `SvgSymbolElement`*"]
61 pub fn has_extension(this: &SvgSymbolElement, extension: &str) -> bool;
62}