objc2_web_kit/generated/
DOMMutationEvent.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10#[deprecated]
12pub const DOM_MODIFICATION: c_uint = 1;
13#[deprecated]
15pub const DOM_ADDITION: c_uint = 2;
16#[deprecated]
18pub const DOM_REMOVAL: c_uint = 3;
19
20extern_class!(
21 #[unsafe(super(DOMEvent, DOMObject, WebScriptObject, NSObject))]
23 #[derive(Debug, PartialEq, Eq, Hash)]
24 #[cfg(all(
25 feature = "DOMEvent",
26 feature = "DOMObject",
27 feature = "WebScriptObject"
28 ))]
29 #[deprecated]
30 pub struct DOMMutationEvent;
31);
32
33#[cfg(all(
34 feature = "DOMEvent",
35 feature = "DOMObject",
36 feature = "WebScriptObject"
37))]
38extern_conformance!(
39 unsafe impl NSCopying for DOMMutationEvent {}
40);
41
42#[cfg(all(
43 feature = "DOMEvent",
44 feature = "DOMObject",
45 feature = "WebScriptObject"
46))]
47unsafe impl CopyingHelper for DOMMutationEvent {
48 type Result = Self;
49}
50
51#[cfg(all(
52 feature = "DOMEvent",
53 feature = "DOMObject",
54 feature = "WebScriptObject"
55))]
56extern_conformance!(
57 unsafe impl NSObjectProtocol for DOMMutationEvent {}
58);
59
60#[cfg(all(
61 feature = "DOMEvent",
62 feature = "DOMObject",
63 feature = "WebScriptObject"
64))]
65impl DOMMutationEvent {
66 extern_methods!(
67 #[cfg(feature = "DOMNode")]
68 #[deprecated]
69 #[unsafe(method(relatedNode))]
70 #[unsafe(method_family = none)]
71 pub unsafe fn relatedNode(&self) -> Option<Retained<DOMNode>>;
72
73 #[deprecated]
74 #[unsafe(method(prevValue))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn prevValue(&self) -> Retained<NSString>;
77
78 #[deprecated]
79 #[unsafe(method(attrName))]
80 #[unsafe(method_family = none)]
81 pub unsafe fn attrName(&self) -> Retained<NSString>;
82
83 #[deprecated]
84 #[unsafe(method(attrChange))]
85 #[unsafe(method_family = none)]
86 pub unsafe fn attrChange(&self) -> c_ushort;
87
88 #[cfg(feature = "DOMNode")]
89 #[unsafe(method(initMutationEvent:canBubble:cancelable:relatedNode:prevValue:newValue:attrName:attrChange:))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn initMutationEvent_canBubble_cancelable_relatedNode_prevValue_newValue_attrName_attrChange(
92 &self,
93 r#type: Option<&NSString>,
94 can_bubble: bool,
95 cancelable: bool,
96 related_node: Option<&DOMNode>,
97 prev_value: Option<&NSString>,
98 new_value: Option<&NSString>,
99 attr_name: Option<&NSString>,
100 attr_change: c_ushort,
101 );
102 );
103}
104
105#[cfg(all(
107 feature = "DOMEvent",
108 feature = "DOMObject",
109 feature = "WebScriptObject"
110))]
111impl DOMMutationEvent {
112 extern_methods!(
113 #[deprecated]
114 #[unsafe(method(init))]
115 #[unsafe(method_family = init)]
116 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
117 );
118}
119
120#[cfg(all(
122 feature = "DOMEvent",
123 feature = "DOMObject",
124 feature = "WebScriptObject"
125))]
126impl DOMMutationEvent {
127 extern_methods!(
128 #[unsafe(method(new))]
129 #[unsafe(method_family = new)]
130 pub unsafe fn new() -> Retained<Self>;
131 );
132}
133
134#[cfg(all(
136 feature = "DOMEvent",
137 feature = "DOMObject",
138 feature = "WebScriptObject"
139))]
140impl DOMMutationEvent {
141 extern_methods!(
142 #[cfg(feature = "DOMNode")]
143 #[deprecated]
144 #[unsafe(method(initMutationEvent::::::::))]
145 #[unsafe(method_family = none)]
146 pub unsafe fn initMutationEvent(
147 &self,
148 r#type: Option<&NSString>,
149 can_bubble: bool,
150 cancelable: bool,
151 related_node: Option<&DOMNode>,
152 prev_value: Option<&NSString>,
153 new_value: Option<&NSString>,
154 attr_name: Option<&NSString>,
155 attr_change: c_ushort,
156 );
157 );
158}