objc2_web_kit/generated/
DOMHTMLTableRowElement.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domhtmltablerowelement?language=objc)
12    #[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 DOMHTMLTableRowElement;
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 DOMHTMLTableRowElement {}
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 DOMHTMLTableRowElement {}
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 DOMHTMLTableRowElement {
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 DOMHTMLTableRowElement {}
75);
76
77#[cfg(all(
78    feature = "DOMElement",
79    feature = "DOMHTMLElement",
80    feature = "DOMNode",
81    feature = "DOMObject",
82    feature = "WebScriptObject"
83))]
84impl DOMHTMLTableRowElement {
85    extern_methods!(
86        #[deprecated]
87        #[unsafe(method(rowIndex))]
88        #[unsafe(method_family = none)]
89        pub unsafe fn rowIndex(&self) -> c_int;
90
91        #[deprecated]
92        #[unsafe(method(sectionRowIndex))]
93        #[unsafe(method_family = none)]
94        pub unsafe fn sectionRowIndex(&self) -> c_int;
95
96        #[cfg(feature = "DOMHTMLCollection")]
97        #[deprecated]
98        #[unsafe(method(cells))]
99        #[unsafe(method_family = none)]
100        pub unsafe fn cells(&self) -> Option<Retained<DOMHTMLCollection>>;
101
102        #[deprecated]
103        #[unsafe(method(align))]
104        #[unsafe(method_family = none)]
105        pub unsafe fn align(&self) -> Retained<NSString>;
106
107        /// Setter for [`align`][Self::align].
108        ///
109        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
110        #[deprecated]
111        #[unsafe(method(setAlign:))]
112        #[unsafe(method_family = none)]
113        pub unsafe fn setAlign(&self, align: Option<&NSString>);
114
115        #[deprecated]
116        #[unsafe(method(bgColor))]
117        #[unsafe(method_family = none)]
118        pub unsafe fn bgColor(&self) -> Retained<NSString>;
119
120        /// Setter for [`bgColor`][Self::bgColor].
121        ///
122        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
123        #[deprecated]
124        #[unsafe(method(setBgColor:))]
125        #[unsafe(method_family = none)]
126        pub unsafe fn setBgColor(&self, bg_color: Option<&NSString>);
127
128        #[deprecated]
129        #[unsafe(method(ch))]
130        #[unsafe(method_family = none)]
131        pub unsafe fn ch(&self) -> Retained<NSString>;
132
133        /// Setter for [`ch`][Self::ch].
134        ///
135        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
136        #[deprecated]
137        #[unsafe(method(setCh:))]
138        #[unsafe(method_family = none)]
139        pub unsafe fn setCh(&self, ch: Option<&NSString>);
140
141        #[deprecated]
142        #[unsafe(method(chOff))]
143        #[unsafe(method_family = none)]
144        pub unsafe fn chOff(&self) -> Retained<NSString>;
145
146        /// Setter for [`chOff`][Self::chOff].
147        ///
148        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
149        #[deprecated]
150        #[unsafe(method(setChOff:))]
151        #[unsafe(method_family = none)]
152        pub unsafe fn setChOff(&self, ch_off: Option<&NSString>);
153
154        #[deprecated]
155        #[unsafe(method(vAlign))]
156        #[unsafe(method_family = none)]
157        pub unsafe fn vAlign(&self) -> Retained<NSString>;
158
159        /// Setter for [`vAlign`][Self::vAlign].
160        ///
161        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
162        #[deprecated]
163        #[unsafe(method(setVAlign:))]
164        #[unsafe(method_family = none)]
165        pub unsafe fn setVAlign(&self, v_align: Option<&NSString>);
166
167        #[deprecated]
168        #[unsafe(method(insertCell:))]
169        #[unsafe(method_family = none)]
170        pub unsafe fn insertCell(&self, index: c_int) -> Option<Retained<DOMHTMLElement>>;
171
172        #[deprecated]
173        #[unsafe(method(deleteCell:))]
174        #[unsafe(method_family = none)]
175        pub unsafe fn deleteCell(&self, index: c_int);
176    );
177}
178
179/// Methods declared on superclass `DOMObject`.
180#[cfg(all(
181    feature = "DOMElement",
182    feature = "DOMHTMLElement",
183    feature = "DOMNode",
184    feature = "DOMObject",
185    feature = "WebScriptObject"
186))]
187impl DOMHTMLTableRowElement {
188    extern_methods!(
189        #[deprecated]
190        #[unsafe(method(init))]
191        #[unsafe(method_family = init)]
192        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
193    );
194}
195
196/// Methods declared on superclass `NSObject`.
197#[cfg(all(
198    feature = "DOMElement",
199    feature = "DOMHTMLElement",
200    feature = "DOMNode",
201    feature = "DOMObject",
202    feature = "WebScriptObject"
203))]
204impl DOMHTMLTableRowElement {
205    extern_methods!(
206        #[unsafe(method(new))]
207        #[unsafe(method_family = new)]
208        pub unsafe fn new() -> Retained<Self>;
209    );
210}