objc2_web_kit/generated/
DOMHTMLParamElement.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/domhtmlparamelement?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 DOMHTMLParamElement;
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 DOMHTMLParamElement {}
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 DOMHTMLParamElement {}
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 DOMHTMLParamElement {
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 DOMHTMLParamElement {}
75);
76
77#[cfg(all(
78    feature = "DOMElement",
79    feature = "DOMHTMLElement",
80    feature = "DOMNode",
81    feature = "DOMObject",
82    feature = "WebScriptObject"
83))]
84impl DOMHTMLParamElement {
85    extern_methods!(
86        #[deprecated]
87        #[unsafe(method(name))]
88        #[unsafe(method_family = none)]
89        pub unsafe fn name(&self) -> Retained<NSString>;
90
91        /// Setter for [`name`][Self::name].
92        ///
93        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
94        #[deprecated]
95        #[unsafe(method(setName:))]
96        #[unsafe(method_family = none)]
97        pub unsafe fn setName(&self, name: Option<&NSString>);
98
99        #[deprecated]
100        #[unsafe(method(type))]
101        #[unsafe(method_family = none)]
102        pub unsafe fn r#type(&self) -> Retained<NSString>;
103
104        /// Setter for [`type`][Self::type].
105        ///
106        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
107        #[deprecated]
108        #[unsafe(method(setType:))]
109        #[unsafe(method_family = none)]
110        pub unsafe fn setType(&self, r#type: Option<&NSString>);
111
112        #[deprecated]
113        #[unsafe(method(value))]
114        #[unsafe(method_family = none)]
115        pub unsafe fn value(&self) -> Retained<NSString>;
116
117        /// Setter for [`value`][Self::value].
118        ///
119        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
120        #[deprecated]
121        #[unsafe(method(setValue:))]
122        #[unsafe(method_family = none)]
123        pub unsafe fn setValue(&self, value: Option<&NSString>);
124
125        #[deprecated]
126        #[unsafe(method(valueType))]
127        #[unsafe(method_family = none)]
128        pub unsafe fn valueType(&self) -> Retained<NSString>;
129
130        /// Setter for [`valueType`][Self::valueType].
131        ///
132        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
133        #[deprecated]
134        #[unsafe(method(setValueType:))]
135        #[unsafe(method_family = none)]
136        pub unsafe fn setValueType(&self, value_type: Option<&NSString>);
137    );
138}
139
140/// Methods declared on superclass `DOMObject`.
141#[cfg(all(
142    feature = "DOMElement",
143    feature = "DOMHTMLElement",
144    feature = "DOMNode",
145    feature = "DOMObject",
146    feature = "WebScriptObject"
147))]
148impl DOMHTMLParamElement {
149    extern_methods!(
150        #[deprecated]
151        #[unsafe(method(init))]
152        #[unsafe(method_family = init)]
153        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
154    );
155}
156
157/// Methods declared on superclass `NSObject`.
158#[cfg(all(
159    feature = "DOMElement",
160    feature = "DOMHTMLElement",
161    feature = "DOMNode",
162    feature = "DOMObject",
163    feature = "WebScriptObject"
164))]
165impl DOMHTMLParamElement {
166    extern_methods!(
167        #[unsafe(method(new))]
168        #[unsafe(method_family = new)]
169        pub unsafe fn new() -> Retained<Self>;
170    );
171}