web_sys/features/
gen_VttRegion.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VTTRegion , typescript_type = "VTTRegion")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `VttRegion` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub type VttRegion;
    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = id)]
    #[doc = "Getter for the `id` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/id)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn id(this: &VttRegion) -> String;
    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = id)]
    #[doc = "Setter for the `id` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/id)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn set_id(this: &VttRegion, value: &str);
    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = width)]
    #[doc = "Getter for the `width` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/width)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn width(this: &VttRegion) -> f64;
    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = width)]
    #[doc = "Setter for the `width` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/width)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn set_width(this: &VttRegion, value: f64);
    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = lines)]
    #[doc = "Getter for the `lines` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/lines)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn lines(this: &VttRegion) -> i32;
    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = lines)]
    #[doc = "Setter for the `lines` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/lines)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn set_lines(this: &VttRegion, value: i32);
    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = regionAnchorX)]
    #[doc = "Getter for the `regionAnchorX` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorX)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn region_anchor_x(this: &VttRegion) -> f64;
    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = regionAnchorX)]
    #[doc = "Setter for the `regionAnchorX` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorX)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn set_region_anchor_x(this: &VttRegion, value: f64);
    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = regionAnchorY)]
    #[doc = "Getter for the `regionAnchorY` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorY)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn region_anchor_y(this: &VttRegion) -> f64;
    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = regionAnchorY)]
    #[doc = "Setter for the `regionAnchorY` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorY)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn set_region_anchor_y(this: &VttRegion, value: f64);
    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = viewportAnchorX)]
    #[doc = "Getter for the `viewportAnchorX` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorX)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn viewport_anchor_x(this: &VttRegion) -> f64;
    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = viewportAnchorX)]
    #[doc = "Setter for the `viewportAnchorX` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorX)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn set_viewport_anchor_x(this: &VttRegion, value: f64);
    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = viewportAnchorY)]
    #[doc = "Getter for the `viewportAnchorY` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorY)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn viewport_anchor_y(this: &VttRegion) -> f64;
    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = viewportAnchorY)]
    #[doc = "Setter for the `viewportAnchorY` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorY)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn set_viewport_anchor_y(this: &VttRegion, value: f64);
    #[cfg(feature = "ScrollSetting")]
    # [wasm_bindgen (structural , method , getter , js_class = "VTTRegion" , js_name = scroll)]
    #[doc = "Getter for the `scroll` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/scroll)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ScrollSetting`, `VttRegion`*"]
    pub fn scroll(this: &VttRegion) -> ScrollSetting;
    #[cfg(feature = "ScrollSetting")]
    # [wasm_bindgen (structural , method , setter , js_class = "VTTRegion" , js_name = scroll)]
    #[doc = "Setter for the `scroll` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/scroll)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `ScrollSetting`, `VttRegion`*"]
    pub fn set_scroll(this: &VttRegion, value: ScrollSetting);
    #[wasm_bindgen(catch, constructor, js_class = "VTTRegion")]
    #[doc = "The `new VttRegion(..)` constructor, creating a new instance of `VttRegion`."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/VTTRegion)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"]
    pub fn new() -> Result<VttRegion, JsValue>;
}