summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_HtmlMenuItemElement.rs
blob: dd1f4d83267d935360ebc8801adcb3179e7de187 (plain)
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
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMenuItemElement , typescript_type = "HTMLMenuItemElement")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `HtmlMenuItemElement` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    #[deprecated(note = "Absent in all major browsers")]
    pub type HtmlMenuItemElement;
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = type)]
    #[doc = "Getter for the `type` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/type)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn type_(this: &HtmlMenuItemElement) -> String;
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = type)]
    #[doc = "Setter for the `type` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/type)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn set_type(this: &HtmlMenuItemElement, value: &str);
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = label)]
    #[doc = "Getter for the `label` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/label)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn label(this: &HtmlMenuItemElement) -> String;
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = label)]
    #[doc = "Setter for the `label` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/label)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn set_label(this: &HtmlMenuItemElement, value: &str);
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = icon)]
    #[doc = "Getter for the `icon` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/icon)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn icon(this: &HtmlMenuItemElement) -> String;
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = icon)]
    #[doc = "Setter for the `icon` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/icon)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn set_icon(this: &HtmlMenuItemElement, value: &str);
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = disabled)]
    #[doc = "Getter for the `disabled` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/disabled)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn disabled(this: &HtmlMenuItemElement) -> bool;
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = disabled)]
    #[doc = "Setter for the `disabled` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/disabled)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn set_disabled(this: &HtmlMenuItemElement, value: bool);
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = checked)]
    #[doc = "Getter for the `checked` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/checked)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn checked(this: &HtmlMenuItemElement) -> bool;
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = checked)]
    #[doc = "Setter for the `checked` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/checked)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn set_checked(this: &HtmlMenuItemElement, value: bool);
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = radiogroup)]
    #[doc = "Getter for the `radiogroup` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/radiogroup)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn radiogroup(this: &HtmlMenuItemElement) -> String;
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = radiogroup)]
    #[doc = "Setter for the `radiogroup` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/radiogroup)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn set_radiogroup(this: &HtmlMenuItemElement, value: &str);
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = defaultChecked)]
    #[doc = "Getter for the `defaultChecked` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/defaultChecked)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn default_checked(this: &HtmlMenuItemElement) -> bool;
    #[deprecated(note = "Absent in all major browsers")]
    # [wasm_bindgen (structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = defaultChecked)]
    #[doc = "Setter for the `defaultChecked` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/defaultChecked)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"]
    pub fn set_default_checked(this: &HtmlMenuItemElement, value: bool);
}