objc2_web_kit/generated/
DOMCDATASection.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/domcdatasection?language=objc)
11    #[unsafe(super(
12        DOMText,
13        DOMCharacterData,
14        DOMNode,
15        DOMObject,
16        WebScriptObject,
17        NSObject
18    ))]
19    #[derive(Debug, PartialEq, Eq, Hash)]
20    #[cfg(all(
21        feature = "DOMCharacterData",
22        feature = "DOMNode",
23        feature = "DOMObject",
24        feature = "DOMText",
25        feature = "WebScriptObject"
26    ))]
27    #[deprecated]
28    pub struct DOMCDATASection;
29);
30
31#[cfg(all(
32    feature = "DOMCharacterData",
33    feature = "DOMEventTarget",
34    feature = "DOMNode",
35    feature = "DOMObject",
36    feature = "DOMText",
37    feature = "WebScriptObject"
38))]
39unsafe impl DOMEventTarget for DOMCDATASection {}
40
41#[cfg(all(
42    feature = "DOMCharacterData",
43    feature = "DOMNode",
44    feature = "DOMObject",
45    feature = "DOMText",
46    feature = "WebScriptObject"
47))]
48unsafe impl NSCopying for DOMCDATASection {}
49
50#[cfg(all(
51    feature = "DOMCharacterData",
52    feature = "DOMNode",
53    feature = "DOMObject",
54    feature = "DOMText",
55    feature = "WebScriptObject"
56))]
57unsafe impl CopyingHelper for DOMCDATASection {
58    type Result = Self;
59}
60
61#[cfg(all(
62    feature = "DOMCharacterData",
63    feature = "DOMNode",
64    feature = "DOMObject",
65    feature = "DOMText",
66    feature = "WebScriptObject"
67))]
68unsafe impl NSObjectProtocol for DOMCDATASection {}
69
70#[cfg(all(
71    feature = "DOMCharacterData",
72    feature = "DOMNode",
73    feature = "DOMObject",
74    feature = "DOMText",
75    feature = "WebScriptObject"
76))]
77impl DOMCDATASection {
78    extern_methods!();
79}
80
81/// Methods declared on superclass `DOMObject`.
82#[cfg(all(
83    feature = "DOMCharacterData",
84    feature = "DOMNode",
85    feature = "DOMObject",
86    feature = "DOMText",
87    feature = "WebScriptObject"
88))]
89impl DOMCDATASection {
90    extern_methods!(
91        #[deprecated]
92        #[unsafe(method(init))]
93        #[unsafe(method_family = init)]
94        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
95    );
96}
97
98/// Methods declared on superclass `NSObject`.
99#[cfg(all(
100    feature = "DOMCharacterData",
101    feature = "DOMNode",
102    feature = "DOMObject",
103    feature = "DOMText",
104    feature = "WebScriptObject"
105))]
106impl DOMCDATASection {
107    extern_methods!(
108        #[unsafe(method(new))]
109        #[unsafe(method_family = new)]
110        pub unsafe fn new() -> Retained<Self>;
111    );
112}