objc2_web_kit/generated/
DOMHTMLOptionElement.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 DOMHTMLOptionElement;
30);
31
32#[cfg(all(
33 feature = "DOMElement",
34 feature = "DOMEventTarget",
35 feature = "DOMHTMLElement",
36 feature = "DOMNode",
37 feature = "DOMObject",
38 feature = "WebScriptObject"
39))]
40extern_conformance!(
41 unsafe impl DOMEventTarget for DOMHTMLOptionElement {}
42);
43
44#[cfg(all(
45 feature = "DOMElement",
46 feature = "DOMHTMLElement",
47 feature = "DOMNode",
48 feature = "DOMObject",
49 feature = "WebScriptObject"
50))]
51extern_conformance!(
52 unsafe impl NSCopying for DOMHTMLOptionElement {}
53);
54
55#[cfg(all(
56 feature = "DOMElement",
57 feature = "DOMHTMLElement",
58 feature = "DOMNode",
59 feature = "DOMObject",
60 feature = "WebScriptObject"
61))]
62unsafe impl CopyingHelper for DOMHTMLOptionElement {
63 type Result = Self;
64}
65
66#[cfg(all(
67 feature = "DOMElement",
68 feature = "DOMHTMLElement",
69 feature = "DOMNode",
70 feature = "DOMObject",
71 feature = "WebScriptObject"
72))]
73extern_conformance!(
74 unsafe impl NSObjectProtocol for DOMHTMLOptionElement {}
75);
76
77#[cfg(all(
78 feature = "DOMElement",
79 feature = "DOMHTMLElement",
80 feature = "DOMNode",
81 feature = "DOMObject",
82 feature = "WebScriptObject"
83))]
84impl DOMHTMLOptionElement {
85 extern_methods!(
86 #[deprecated]
87 #[unsafe(method(disabled))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn disabled(&self) -> bool;
90
91 #[deprecated]
93 #[unsafe(method(setDisabled:))]
94 #[unsafe(method_family = none)]
95 pub unsafe fn setDisabled(&self, disabled: bool);
96
97 #[cfg(feature = "DOMHTMLFormElement")]
98 #[deprecated]
99 #[unsafe(method(form))]
100 #[unsafe(method_family = none)]
101 pub unsafe fn form(&self) -> Option<Retained<DOMHTMLFormElement>>;
102
103 #[deprecated]
104 #[unsafe(method(label))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn label(&self) -> Retained<NSString>;
107
108 #[deprecated]
110 #[unsafe(method(setLabel:))]
111 #[unsafe(method_family = none)]
112 pub unsafe fn setLabel(&self, label: Option<&NSString>);
113
114 #[deprecated]
115 #[unsafe(method(defaultSelected))]
116 #[unsafe(method_family = none)]
117 pub unsafe fn defaultSelected(&self) -> bool;
118
119 #[deprecated]
121 #[unsafe(method(setDefaultSelected:))]
122 #[unsafe(method_family = none)]
123 pub unsafe fn setDefaultSelected(&self, default_selected: bool);
124
125 #[deprecated]
126 #[unsafe(method(selected))]
127 #[unsafe(method_family = none)]
128 pub unsafe fn selected(&self) -> bool;
129
130 #[deprecated]
132 #[unsafe(method(setSelected:))]
133 #[unsafe(method_family = none)]
134 pub unsafe fn setSelected(&self, selected: bool);
135
136 #[deprecated]
137 #[unsafe(method(value))]
138 #[unsafe(method_family = none)]
139 pub unsafe fn value(&self) -> Retained<NSString>;
140
141 #[deprecated]
143 #[unsafe(method(setValue:))]
144 #[unsafe(method_family = none)]
145 pub unsafe fn setValue(&self, value: Option<&NSString>);
146
147 #[deprecated]
148 #[unsafe(method(text))]
149 #[unsafe(method_family = none)]
150 pub unsafe fn text(&self) -> Retained<NSString>;
151
152 #[deprecated]
153 #[unsafe(method(index))]
154 #[unsafe(method_family = none)]
155 pub unsafe fn index(&self) -> c_int;
156 );
157}
158
159#[cfg(all(
161 feature = "DOMElement",
162 feature = "DOMHTMLElement",
163 feature = "DOMNode",
164 feature = "DOMObject",
165 feature = "WebScriptObject"
166))]
167impl DOMHTMLOptionElement {
168 extern_methods!(
169 #[deprecated]
170 #[unsafe(method(init))]
171 #[unsafe(method_family = init)]
172 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
173 );
174}
175
176#[cfg(all(
178 feature = "DOMElement",
179 feature = "DOMHTMLElement",
180 feature = "DOMNode",
181 feature = "DOMObject",
182 feature = "WebScriptObject"
183))]
184impl DOMHTMLOptionElement {
185 extern_methods!(
186 #[unsafe(method(new))]
187 #[unsafe(method_family = new)]
188 pub unsafe fn new() -> Retained<Self>;
189 );
190}