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))]
40unsafe impl DOMEventTarget for DOMHTMLOptionElement {}
41
42#[cfg(all(
43 feature = "DOMElement",
44 feature = "DOMHTMLElement",
45 feature = "DOMNode",
46 feature = "DOMObject",
47 feature = "WebScriptObject"
48))]
49unsafe impl NSCopying for DOMHTMLOptionElement {}
50
51#[cfg(all(
52 feature = "DOMElement",
53 feature = "DOMHTMLElement",
54 feature = "DOMNode",
55 feature = "DOMObject",
56 feature = "WebScriptObject"
57))]
58unsafe impl CopyingHelper for DOMHTMLOptionElement {
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 DOMHTMLOptionElement {}
70
71#[cfg(all(
72 feature = "DOMElement",
73 feature = "DOMHTMLElement",
74 feature = "DOMNode",
75 feature = "DOMObject",
76 feature = "WebScriptObject"
77))]
78impl DOMHTMLOptionElement {
79 extern_methods!(
80 #[deprecated]
81 #[unsafe(method(disabled))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn disabled(&self) -> bool;
84
85 #[deprecated]
87 #[unsafe(method(setDisabled:))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn setDisabled(&self, disabled: bool);
90
91 #[cfg(feature = "DOMHTMLFormElement")]
92 #[deprecated]
93 #[unsafe(method(form))]
94 #[unsafe(method_family = none)]
95 pub unsafe fn form(&self) -> Option<Retained<DOMHTMLFormElement>>;
96
97 #[deprecated]
98 #[unsafe(method(label))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn label(&self) -> Retained<NSString>;
101
102 #[deprecated]
104 #[unsafe(method(setLabel:))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn setLabel(&self, label: Option<&NSString>);
107
108 #[deprecated]
109 #[unsafe(method(defaultSelected))]
110 #[unsafe(method_family = none)]
111 pub unsafe fn defaultSelected(&self) -> bool;
112
113 #[deprecated]
115 #[unsafe(method(setDefaultSelected:))]
116 #[unsafe(method_family = none)]
117 pub unsafe fn setDefaultSelected(&self, default_selected: bool);
118
119 #[deprecated]
120 #[unsafe(method(selected))]
121 #[unsafe(method_family = none)]
122 pub unsafe fn selected(&self) -> bool;
123
124 #[deprecated]
126 #[unsafe(method(setSelected:))]
127 #[unsafe(method_family = none)]
128 pub unsafe fn setSelected(&self, selected: bool);
129
130 #[deprecated]
131 #[unsafe(method(value))]
132 #[unsafe(method_family = none)]
133 pub unsafe fn value(&self) -> Retained<NSString>;
134
135 #[deprecated]
137 #[unsafe(method(setValue:))]
138 #[unsafe(method_family = none)]
139 pub unsafe fn setValue(&self, value: Option<&NSString>);
140
141 #[deprecated]
142 #[unsafe(method(text))]
143 #[unsafe(method_family = none)]
144 pub unsafe fn text(&self) -> Retained<NSString>;
145
146 #[deprecated]
147 #[unsafe(method(index))]
148 #[unsafe(method_family = none)]
149 pub unsafe fn index(&self) -> c_int;
150 );
151}
152
153#[cfg(all(
155 feature = "DOMElement",
156 feature = "DOMHTMLElement",
157 feature = "DOMNode",
158 feature = "DOMObject",
159 feature = "WebScriptObject"
160))]
161impl DOMHTMLOptionElement {
162 extern_methods!(
163 #[deprecated]
164 #[unsafe(method(init))]
165 #[unsafe(method_family = init)]
166 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
167 );
168}
169
170#[cfg(all(
172 feature = "DOMElement",
173 feature = "DOMHTMLElement",
174 feature = "DOMNode",
175 feature = "DOMObject",
176 feature = "WebScriptObject"
177))]
178impl DOMHTMLOptionElement {
179 extern_methods!(
180 #[unsafe(method(new))]
181 #[unsafe(method_family = new)]
182 pub unsafe fn new() -> Retained<Self>;
183 );
184}