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