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