web_sys/features/
gen_SvgComponentTransferFunctionElement.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "SvgElement",
9 extends = "Element",
10 extends = "Node",
11 extends = "EventTarget",
12 extends = "::js_sys::Object",
13 js_name = "SVGComponentTransferFunctionElement",
14 typescript_type = "SVGComponentTransferFunctionElement"
15 )]
16 #[derive(Debug, Clone, PartialEq, Eq)]
17 #[doc = "The `SvgComponentTransferFunctionElement` class."]
18 #[doc = ""]
19 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement)"]
20 #[doc = ""]
21 #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"]
22 pub type SvgComponentTransferFunctionElement;
23 #[cfg(feature = "SvgAnimatedEnumeration")]
24 #[wasm_bindgen(
25 method,
26 getter,
27 js_class = "SVGComponentTransferFunctionElement",
28 js_name = "type"
29 )]
30 #[doc = "Getter for the `type` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/type)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgComponentTransferFunctionElement`*"]
35 pub fn type_(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedEnumeration;
36 #[cfg(feature = "SvgAnimatedNumberList")]
37 #[wasm_bindgen(
38 method,
39 getter,
40 js_class = "SVGComponentTransferFunctionElement",
41 js_name = "tableValues"
42 )]
43 #[doc = "Getter for the `tableValues` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/tableValues)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgComponentTransferFunctionElement`*"]
48 pub fn table_values(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumberList;
49 #[cfg(feature = "SvgAnimatedNumber")]
50 #[wasm_bindgen(
51 method,
52 getter,
53 js_class = "SVGComponentTransferFunctionElement",
54 js_name = "slope"
55 )]
56 #[doc = "Getter for the `slope` field of this object."]
57 #[doc = ""]
58 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/slope)"]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"]
61 pub fn slope(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber;
62 #[cfg(feature = "SvgAnimatedNumber")]
63 #[wasm_bindgen(
64 method,
65 getter,
66 js_class = "SVGComponentTransferFunctionElement",
67 js_name = "intercept"
68 )]
69 #[doc = "Getter for the `intercept` field of this object."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/intercept)"]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"]
74 pub fn intercept(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber;
75 #[cfg(feature = "SvgAnimatedNumber")]
76 #[wasm_bindgen(
77 method,
78 getter,
79 js_class = "SVGComponentTransferFunctionElement",
80 js_name = "amplitude"
81 )]
82 #[doc = "Getter for the `amplitude` field of this object."]
83 #[doc = ""]
84 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/amplitude)"]
85 #[doc = ""]
86 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"]
87 pub fn amplitude(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber;
88 #[cfg(feature = "SvgAnimatedNumber")]
89 #[wasm_bindgen(
90 method,
91 getter,
92 js_class = "SVGComponentTransferFunctionElement",
93 js_name = "exponent"
94 )]
95 #[doc = "Getter for the `exponent` field of this object."]
96 #[doc = ""]
97 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/exponent)"]
98 #[doc = ""]
99 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"]
100 pub fn exponent(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber;
101 #[cfg(feature = "SvgAnimatedNumber")]
102 #[wasm_bindgen(
103 method,
104 getter,
105 js_class = "SVGComponentTransferFunctionElement",
106 js_name = "offset"
107 )]
108 #[doc = "Getter for the `offset` field of this object."]
109 #[doc = ""]
110 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/offset)"]
111 #[doc = ""]
112 #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"]
113 pub fn offset(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber;
114}
115impl SvgComponentTransferFunctionElement {
116 #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN` const."]
117 #[doc = ""]
118 #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"]
119 pub const SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: u16 = 0i64 as u16;
120 #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY` const."]
121 #[doc = ""]
122 #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"]
123 pub const SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: u16 = 1u64 as u16;
124 #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_TABLE` const."]
125 #[doc = ""]
126 #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"]
127 pub const SVG_FECOMPONENTTRANSFER_TYPE_TABLE: u16 = 2u64 as u16;
128 #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE` const."]
129 #[doc = ""]
130 #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"]
131 pub const SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: u16 = 3u64 as u16;
132 #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR` const."]
133 #[doc = ""]
134 #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"]
135 pub const SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: u16 = 4u64 as u16;
136 #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_GAMMA` const."]
137 #[doc = ""]
138 #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"]
139 pub const SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: u16 = 5u64 as u16;
140}