objc2_web_kit/generated/
DOMHTMLButtonElement.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(
13 DOMHTMLElement,
14 DOMElement,
15 DOMNode,
16 DOMObject,
17 WebScriptObject,
18 NSObject
19 ))]
20 #[derive(Debug, PartialEq, Eq, Hash)]
21 #[cfg(all(
22 feature = "DOMElement",
23 feature = "DOMHTMLElement",
24 feature = "DOMNode",
25 feature = "DOMObject",
26 feature = "WebScriptObject"
27 ))]
28 #[deprecated]
29 pub struct DOMHTMLButtonElement;
30);
31
32#[cfg(all(
33 feature = "DOMElement",
34 feature = "DOMEventTarget",
35 feature = "DOMHTMLElement",
36 feature = "DOMNode",
37 feature = "DOMObject",
38 feature = "WebScriptObject"
39))]
40unsafe impl DOMEventTarget for DOMHTMLButtonElement {}
41
42#[cfg(all(
43 feature = "DOMElement",
44 feature = "DOMHTMLElement",
45 feature = "DOMNode",
46 feature = "DOMObject",
47 feature = "WebScriptObject"
48))]
49unsafe impl NSCopying for DOMHTMLButtonElement {}
50
51#[cfg(all(
52 feature = "DOMElement",
53 feature = "DOMHTMLElement",
54 feature = "DOMNode",
55 feature = "DOMObject",
56 feature = "WebScriptObject"
57))]
58unsafe impl CopyingHelper for DOMHTMLButtonElement {
59 type Result = Self;
60}
61
62#[cfg(all(
63 feature = "DOMElement",
64 feature = "DOMHTMLElement",
65 feature = "DOMNode",
66 feature = "DOMObject",
67 feature = "WebScriptObject"
68))]
69unsafe impl NSObjectProtocol for DOMHTMLButtonElement {}
70
71#[cfg(all(
72 feature = "DOMElement",
73 feature = "DOMHTMLElement",
74 feature = "DOMNode",
75 feature = "DOMObject",
76 feature = "WebScriptObject"
77))]
78impl DOMHTMLButtonElement {
79 extern_methods!(
80 #[unsafe(method(autofocus))]
81 #[unsafe(method_family = none)]
82 pub unsafe fn autofocus(&self) -> bool;
83
84 #[unsafe(method(setAutofocus:))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn setAutofocus(&self, autofocus: bool);
88
89 #[deprecated]
90 #[unsafe(method(disabled))]
91 #[unsafe(method_family = none)]
92 pub unsafe fn disabled(&self) -> bool;
93
94 #[deprecated]
96 #[unsafe(method(setDisabled:))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn setDisabled(&self, disabled: bool);
99
100 #[cfg(feature = "DOMHTMLFormElement")]
101 #[deprecated]
102 #[unsafe(method(form))]
103 #[unsafe(method_family = none)]
104 pub unsafe fn form(&self) -> Option<Retained<DOMHTMLFormElement>>;
105
106 #[deprecated]
107 #[unsafe(method(type))]
108 #[unsafe(method_family = none)]
109 pub unsafe fn r#type(&self) -> Retained<NSString>;
110
111 #[deprecated]
113 #[unsafe(method(setType:))]
114 #[unsafe(method_family = none)]
115 pub unsafe fn setType(&self, r#type: Option<&NSString>);
116
117 #[deprecated]
118 #[unsafe(method(name))]
119 #[unsafe(method_family = none)]
120 pub unsafe fn name(&self) -> Retained<NSString>;
121
122 #[deprecated]
124 #[unsafe(method(setName:))]
125 #[unsafe(method_family = none)]
126 pub unsafe fn setName(&self, name: Option<&NSString>);
127
128 #[deprecated]
129 #[unsafe(method(value))]
130 #[unsafe(method_family = none)]
131 pub unsafe fn value(&self) -> Retained<NSString>;
132
133 #[deprecated]
135 #[unsafe(method(setValue:))]
136 #[unsafe(method_family = none)]
137 pub unsafe fn setValue(&self, value: Option<&NSString>);
138
139 #[unsafe(method(willValidate))]
140 #[unsafe(method_family = none)]
141 pub unsafe fn willValidate(&self) -> bool;
142
143 #[deprecated]
144 #[unsafe(method(accessKey))]
145 #[unsafe(method_family = none)]
146 pub unsafe fn accessKey(&self) -> Retained<NSString>;
147
148 #[deprecated]
150 #[unsafe(method(setAccessKey:))]
151 #[unsafe(method_family = none)]
152 pub unsafe fn setAccessKey(&self, access_key: Option<&NSString>);
153
154 #[unsafe(method(click))]
155 #[unsafe(method_family = none)]
156 pub unsafe fn click(&self);
157 );
158}
159
160#[cfg(all(
162 feature = "DOMElement",
163 feature = "DOMHTMLElement",
164 feature = "DOMNode",
165 feature = "DOMObject",
166 feature = "WebScriptObject"
167))]
168impl DOMHTMLButtonElement {
169 extern_methods!(
170 #[deprecated]
171 #[unsafe(method(init))]
172 #[unsafe(method_family = init)]
173 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
174 );
175}
176
177#[cfg(all(
179 feature = "DOMElement",
180 feature = "DOMHTMLElement",
181 feature = "DOMNode",
182 feature = "DOMObject",
183 feature = "WebScriptObject"
184))]
185impl DOMHTMLButtonElement {
186 extern_methods!(
187 #[unsafe(method(new))]
188 #[unsafe(method_family = new)]
189 pub unsafe fn new() -> Retained<Self>;
190 );
191}