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