web_sys/features/
gen_SvgViewElement.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 = SVGViewElement , typescript_type = "SVGViewElement")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `SvgViewElement` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"]
14 pub type SvgViewElement;
15 #[cfg(feature = "SvgAnimatedRect")]
16 # [wasm_bindgen (structural , method , getter , js_class = "SVGViewElement" , 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/SVGViewElement/viewBox)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgViewElement`*"]
22 pub fn view_box(this: &SvgViewElement) -> SvgAnimatedRect;
23 #[cfg(feature = "SvgAnimatedPreserveAspectRatio")]
24 # [wasm_bindgen (structural , method , getter , js_class = "SVGViewElement" , 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/SVGViewElement/preserveAspectRatio)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgViewElement`*"]
30 pub fn preserve_aspect_ratio(this: &SvgViewElement) -> SvgAnimatedPreserveAspectRatio;
31 # [wasm_bindgen (structural , method , getter , js_class = "SVGViewElement" , js_name = zoomAndPan)]
32 #[doc = "Getter for the `zoomAndPan` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/zoomAndPan)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"]
37 pub fn zoom_and_pan(this: &SvgViewElement) -> u16;
38 # [wasm_bindgen (structural , method , setter , js_class = "SVGViewElement" , js_name = zoomAndPan)]
39 #[doc = "Setter for the `zoomAndPan` field of this object."]
40 #[doc = ""]
41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/zoomAndPan)"]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"]
44 pub fn set_zoom_and_pan(this: &SvgViewElement, value: u16);
45}
46impl SvgViewElement {
47 #[doc = "The `SVGViewElement.SVG_ZOOMANDPAN_UNKNOWN` const."]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"]
50 pub const SVG_ZOOMANDPAN_UNKNOWN: u16 = 0i64 as u16;
51 #[doc = "The `SVGViewElement.SVG_ZOOMANDPAN_DISABLE` const."]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"]
54 pub const SVG_ZOOMANDPAN_DISABLE: u16 = 1u64 as u16;
55 #[doc = "The `SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY` const."]
56 #[doc = ""]
57 #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"]
58 pub const SVG_ZOOMANDPAN_MAGNIFY: u16 = 2u64 as u16;
59}