objc2_web_kit/generated/
DOMHTMLTableColElement.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/domhtmltablecolelement?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 DOMHTMLTableColElement;
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 DOMHTMLTableColElement {}
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 DOMHTMLTableColElement {}
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 DOMHTMLTableColElement {
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 DOMHTMLTableColElement {}
75);
76
77#[cfg(all(
78    feature = "DOMElement",
79    feature = "DOMHTMLElement",
80    feature = "DOMNode",
81    feature = "DOMObject",
82    feature = "WebScriptObject"
83))]
84impl DOMHTMLTableColElement {
85    extern_methods!(
86        #[deprecated]
87        #[unsafe(method(align))]
88        #[unsafe(method_family = none)]
89        pub unsafe fn align(&self) -> Retained<NSString>;
90
91        /// Setter for [`align`][Self::align].
92        #[deprecated]
93        #[unsafe(method(setAlign:))]
94        #[unsafe(method_family = none)]
95        pub unsafe fn setAlign(&self, align: Option<&NSString>);
96
97        #[deprecated]
98        #[unsafe(method(ch))]
99        #[unsafe(method_family = none)]
100        pub unsafe fn ch(&self) -> Retained<NSString>;
101
102        /// Setter for [`ch`][Self::ch].
103        #[deprecated]
104        #[unsafe(method(setCh:))]
105        #[unsafe(method_family = none)]
106        pub unsafe fn setCh(&self, ch: Option<&NSString>);
107
108        #[deprecated]
109        #[unsafe(method(chOff))]
110        #[unsafe(method_family = none)]
111        pub unsafe fn chOff(&self) -> Retained<NSString>;
112
113        /// Setter for [`chOff`][Self::chOff].
114        #[deprecated]
115        #[unsafe(method(setChOff:))]
116        #[unsafe(method_family = none)]
117        pub unsafe fn setChOff(&self, ch_off: Option<&NSString>);
118
119        #[deprecated]
120        #[unsafe(method(span))]
121        #[unsafe(method_family = none)]
122        pub unsafe fn span(&self) -> c_int;
123
124        /// Setter for [`span`][Self::span].
125        #[deprecated]
126        #[unsafe(method(setSpan:))]
127        #[unsafe(method_family = none)]
128        pub unsafe fn setSpan(&self, span: c_int);
129
130        #[deprecated]
131        #[unsafe(method(vAlign))]
132        #[unsafe(method_family = none)]
133        pub unsafe fn vAlign(&self) -> Retained<NSString>;
134
135        /// Setter for [`vAlign`][Self::vAlign].
136        #[deprecated]
137        #[unsafe(method(setVAlign:))]
138        #[unsafe(method_family = none)]
139        pub unsafe fn setVAlign(&self, v_align: Option<&NSString>);
140
141        #[deprecated]
142        #[unsafe(method(width))]
143        #[unsafe(method_family = none)]
144        pub unsafe fn width(&self) -> Retained<NSString>;
145
146        /// Setter for [`width`][Self::width].
147        #[deprecated]
148        #[unsafe(method(setWidth:))]
149        #[unsafe(method_family = none)]
150        pub unsafe fn setWidth(&self, width: Option<&NSString>);
151    );
152}
153
154/// Methods declared on superclass `DOMObject`.
155#[cfg(all(
156    feature = "DOMElement",
157    feature = "DOMHTMLElement",
158    feature = "DOMNode",
159    feature = "DOMObject",
160    feature = "WebScriptObject"
161))]
162impl DOMHTMLTableColElement {
163    extern_methods!(
164        #[deprecated]
165        #[unsafe(method(init))]
166        #[unsafe(method_family = init)]
167        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
168    );
169}
170
171/// Methods declared on superclass `NSObject`.
172#[cfg(all(
173    feature = "DOMElement",
174    feature = "DOMHTMLElement",
175    feature = "DOMNode",
176    feature = "DOMObject",
177    feature = "WebScriptObject"
178))]
179impl DOMHTMLTableColElement {
180    extern_methods!(
181        #[unsafe(method(new))]
182        #[unsafe(method_family = new)]
183        pub unsafe fn new() -> Retained<Self>;
184    );
185}