objc2_web_kit/generated/
DOMHTMLOListElement.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/domhtmlolistelement?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 DOMHTMLOListElement;
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 DOMHTMLOListElement {}
41
42#[cfg(all(
43    feature = "DOMElement",
44    feature = "DOMHTMLElement",
45    feature = "DOMNode",
46    feature = "DOMObject",
47    feature = "WebScriptObject"
48))]
49unsafe impl NSCopying for DOMHTMLOListElement {}
50
51#[cfg(all(
52    feature = "DOMElement",
53    feature = "DOMHTMLElement",
54    feature = "DOMNode",
55    feature = "DOMObject",
56    feature = "WebScriptObject"
57))]
58unsafe impl CopyingHelper for DOMHTMLOListElement {
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 DOMHTMLOListElement {}
70
71#[cfg(all(
72    feature = "DOMElement",
73    feature = "DOMHTMLElement",
74    feature = "DOMNode",
75    feature = "DOMObject",
76    feature = "WebScriptObject"
77))]
78impl DOMHTMLOListElement {
79    extern_methods!(
80        #[deprecated]
81        #[unsafe(method(compact))]
82        #[unsafe(method_family = none)]
83        pub unsafe fn compact(&self) -> bool;
84
85        /// Setter for [`compact`][Self::compact].
86        #[deprecated]
87        #[unsafe(method(setCompact:))]
88        #[unsafe(method_family = none)]
89        pub unsafe fn setCompact(&self, compact: bool);
90
91        #[deprecated]
92        #[unsafe(method(start))]
93        #[unsafe(method_family = none)]
94        pub unsafe fn start(&self) -> c_int;
95
96        /// Setter for [`start`][Self::start].
97        #[deprecated]
98        #[unsafe(method(setStart:))]
99        #[unsafe(method_family = none)]
100        pub unsafe fn setStart(&self, start: c_int);
101
102        #[deprecated]
103        #[unsafe(method(type))]
104        #[unsafe(method_family = none)]
105        pub unsafe fn r#type(&self) -> Retained<NSString>;
106
107        /// Setter for [`type`][Self::type].
108        #[deprecated]
109        #[unsafe(method(setType:))]
110        #[unsafe(method_family = none)]
111        pub unsafe fn setType(&self, r#type: Option<&NSString>);
112    );
113}
114
115/// Methods declared on superclass `DOMObject`.
116#[cfg(all(
117    feature = "DOMElement",
118    feature = "DOMHTMLElement",
119    feature = "DOMNode",
120    feature = "DOMObject",
121    feature = "WebScriptObject"
122))]
123impl DOMHTMLOListElement {
124    extern_methods!(
125        #[deprecated]
126        #[unsafe(method(init))]
127        #[unsafe(method_family = init)]
128        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
129    );
130}
131
132/// Methods declared on superclass `NSObject`.
133#[cfg(all(
134    feature = "DOMElement",
135    feature = "DOMHTMLElement",
136    feature = "DOMNode",
137    feature = "DOMObject",
138    feature = "WebScriptObject"
139))]
140impl DOMHTMLOListElement {
141    extern_methods!(
142        #[unsafe(method(new))]
143        #[unsafe(method_family = new)]
144        pub unsafe fn new() -> Retained<Self>;
145    );
146}