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