web_sys/features/
gen_SvgPreserveAspectRatio.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 = SVGPreserveAspectRatio , typescript_type = "SVGPreserveAspectRatio")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `SvgPreserveAspectRatio` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
14    pub type SvgPreserveAspectRatio;
15    # [wasm_bindgen (structural , method , getter , js_class = "SVGPreserveAspectRatio" , js_name = align)]
16    #[doc = "Getter for the `align` field of this object."]
17    #[doc = ""]
18    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/align)"]
19    #[doc = ""]
20    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
21    pub fn align(this: &SvgPreserveAspectRatio) -> u16;
22    # [wasm_bindgen (structural , method , setter , js_class = "SVGPreserveAspectRatio" , js_name = align)]
23    #[doc = "Setter for the `align` field of this object."]
24    #[doc = ""]
25    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/align)"]
26    #[doc = ""]
27    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
28    pub fn set_align(this: &SvgPreserveAspectRatio, value: u16);
29    # [wasm_bindgen (structural , method , getter , js_class = "SVGPreserveAspectRatio" , js_name = meetOrSlice)]
30    #[doc = "Getter for the `meetOrSlice` field of this object."]
31    #[doc = ""]
32    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/meetOrSlice)"]
33    #[doc = ""]
34    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
35    pub fn meet_or_slice(this: &SvgPreserveAspectRatio) -> u16;
36    # [wasm_bindgen (structural , method , setter , js_class = "SVGPreserveAspectRatio" , js_name = meetOrSlice)]
37    #[doc = "Setter for the `meetOrSlice` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/meetOrSlice)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
42    pub fn set_meet_or_slice(this: &SvgPreserveAspectRatio, value: u16);
43}
44impl SvgPreserveAspectRatio {
45    #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_UNKNOWN` const."]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
48    pub const SVG_PRESERVEASPECTRATIO_UNKNOWN: u16 = 0i64 as u16;
49    #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_NONE` const."]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
52    pub const SVG_PRESERVEASPECTRATIO_NONE: u16 = 1u64 as u16;
53    #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMIN` const."]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
56    pub const SVG_PRESERVEASPECTRATIO_XMINYMIN: u16 = 2u64 as u16;
57    #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMIN` const."]
58    #[doc = ""]
59    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
60    pub const SVG_PRESERVEASPECTRATIO_XMIDYMIN: u16 = 3u64 as u16;
61    #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMIN` const."]
62    #[doc = ""]
63    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
64    pub const SVG_PRESERVEASPECTRATIO_XMAXYMIN: u16 = 4u64 as u16;
65    #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMID` const."]
66    #[doc = ""]
67    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
68    pub const SVG_PRESERVEASPECTRATIO_XMINYMID: u16 = 5u64 as u16;
69    #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMID` const."]
70    #[doc = ""]
71    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
72    pub const SVG_PRESERVEASPECTRATIO_XMIDYMID: u16 = 6u64 as u16;
73    #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMID` const."]
74    #[doc = ""]
75    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
76    pub const SVG_PRESERVEASPECTRATIO_XMAXYMID: u16 = 7u64 as u16;
77    #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMAX` const."]
78    #[doc = ""]
79    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
80    pub const SVG_PRESERVEASPECTRATIO_XMINYMAX: u16 = 8u64 as u16;
81    #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMAX` const."]
82    #[doc = ""]
83    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
84    pub const SVG_PRESERVEASPECTRATIO_XMIDYMAX: u16 = 9u64 as u16;
85    #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMAX` const."]
86    #[doc = ""]
87    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
88    pub const SVG_PRESERVEASPECTRATIO_XMAXYMAX: u16 = 10u64 as u16;
89    #[doc = "The `SVGPreserveAspectRatio.SVG_MEETORSLICE_UNKNOWN` const."]
90    #[doc = ""]
91    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
92    pub const SVG_MEETORSLICE_UNKNOWN: u16 = 0i64 as u16;
93    #[doc = "The `SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET` const."]
94    #[doc = ""]
95    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
96    pub const SVG_MEETORSLICE_MEET: u16 = 1u64 as u16;
97    #[doc = "The `SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE` const."]
98    #[doc = ""]
99    #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"]
100    pub const SVG_MEETORSLICE_SLICE: u16 = 2u64 as u16;
101}