objc2_web_kit/generated/
DOMCDATASection.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[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))]
39extern_conformance!(
40 unsafe impl DOMEventTarget for DOMCDATASection {}
41);
42
43#[cfg(all(
44 feature = "DOMCharacterData",
45 feature = "DOMNode",
46 feature = "DOMObject",
47 feature = "DOMText",
48 feature = "WebScriptObject"
49))]
50extern_conformance!(
51 unsafe impl NSCopying for DOMCDATASection {}
52);
53
54#[cfg(all(
55 feature = "DOMCharacterData",
56 feature = "DOMNode",
57 feature = "DOMObject",
58 feature = "DOMText",
59 feature = "WebScriptObject"
60))]
61unsafe impl CopyingHelper for DOMCDATASection {
62 type Result = Self;
63}
64
65#[cfg(all(
66 feature = "DOMCharacterData",
67 feature = "DOMNode",
68 feature = "DOMObject",
69 feature = "DOMText",
70 feature = "WebScriptObject"
71))]
72extern_conformance!(
73 unsafe impl NSObjectProtocol for DOMCDATASection {}
74);
75
76#[cfg(all(
77 feature = "DOMCharacterData",
78 feature = "DOMNode",
79 feature = "DOMObject",
80 feature = "DOMText",
81 feature = "WebScriptObject"
82))]
83impl DOMCDATASection {
84 extern_methods!();
85}
86
87#[cfg(all(
89 feature = "DOMCharacterData",
90 feature = "DOMNode",
91 feature = "DOMObject",
92 feature = "DOMText",
93 feature = "WebScriptObject"
94))]
95impl DOMCDATASection {
96 extern_methods!(
97 #[deprecated]
98 #[unsafe(method(init))]
99 #[unsafe(method_family = init)]
100 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
101 );
102}
103
104#[cfg(all(
106 feature = "DOMCharacterData",
107 feature = "DOMNode",
108 feature = "DOMObject",
109 feature = "DOMText",
110 feature = "WebScriptObject"
111))]
112impl DOMCDATASection {
113 extern_methods!(
114 #[unsafe(method(new))]
115 #[unsafe(method_family = new)]
116 pub unsafe fn new() -> Retained<Self>;
117 );
118}