Skip to main content

web_sys/features/
gen_SvgZoomAndPan.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "SVGZoomAndPan",
10        typescript_type = "SVGZoomAndPan"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `SvgZoomAndPan` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomAndPan)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"]
18    pub type SvgZoomAndPan;
19    #[wasm_bindgen(method, getter, js_class = "SVGZoomAndPan", js_name = "zoomAndPan")]
20    #[doc = "Getter for the `zoomAndPan` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomAndPan/zoomAndPan)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"]
25    pub fn zoom_and_pan(this: &SvgZoomAndPan) -> u16;
26    #[wasm_bindgen(method, setter, js_class = "SVGZoomAndPan", js_name = "zoomAndPan")]
27    #[doc = "Setter for the `zoomAndPan` field of this object."]
28    #[doc = ""]
29    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomAndPan/zoomAndPan)"]
30    #[doc = ""]
31    #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"]
32    pub fn set_zoom_and_pan(this: &SvgZoomAndPan, value: u16);
33}
34impl SvgZoomAndPan {
35    #[doc = "The `SVGZoomAndPan.SVG_ZOOMANDPAN_UNKNOWN` const."]
36    #[doc = ""]
37    #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"]
38    pub const SVG_ZOOMANDPAN_UNKNOWN: u16 = 0i64 as u16;
39    #[doc = "The `SVGZoomAndPan.SVG_ZOOMANDPAN_DISABLE` const."]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"]
42    pub const SVG_ZOOMANDPAN_DISABLE: u16 = 1u64 as u16;
43    #[doc = "The `SVGZoomAndPan.SVG_ZOOMANDPAN_MAGNIFY` const."]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"]
46    pub const SVG_ZOOMANDPAN_MAGNIFY: u16 = 2u64 as u16;
47}