1#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
6#![allow(
7 clippy::approx_constant,
8 clippy::type_complexity,
9 clippy::unreadable_literal,
10 clippy::upper_case_acronyms
11)]
12#![cfg_attr(docsrs, feature(doc_cfg))]
13
14use glib_sys as glib;
15
16#[cfg(unix)]
17#[allow(unused_imports)]
18use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t};
19#[allow(unused_imports)]
20use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE};
21#[allow(unused_imports)]
22use std::ffi::{
23 c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
24};
25
26#[allow(unused_imports)]
27use glib::{gboolean, gconstpointer, gpointer, GType};
28
29pub type GdkWaylandToplevelExported =
31 Option<unsafe extern "C" fn(*mut GdkWaylandToplevel, *const c_char, gpointer)>;
32
33#[repr(C)]
35#[allow(dead_code)]
36pub struct _GdkWaylandDeviceClass {
37 _data: [u8; 0],
38 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
39}
40
41pub type GdkWaylandDeviceClass = _GdkWaylandDeviceClass;
42
43#[repr(C)]
44#[allow(dead_code)]
45pub struct _GdkWaylandDisplayClass {
46 _data: [u8; 0],
47 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
48}
49
50pub type GdkWaylandDisplayClass = _GdkWaylandDisplayClass;
51
52#[repr(C)]
53#[allow(dead_code)]
54pub struct _GdkWaylandGLContextClass {
55 _data: [u8; 0],
56 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
57}
58
59pub type GdkWaylandGLContextClass = _GdkWaylandGLContextClass;
60
61#[repr(C)]
62#[allow(dead_code)]
63pub struct _GdkWaylandMonitorClass {
64 _data: [u8; 0],
65 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
66}
67
68pub type GdkWaylandMonitorClass = _GdkWaylandMonitorClass;
69
70#[repr(C)]
71#[allow(dead_code)]
72pub struct _GdkWaylandSeatClass {
73 _data: [u8; 0],
74 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
75}
76
77pub type GdkWaylandSeatClass = _GdkWaylandSeatClass;
78
79#[repr(C)]
81#[allow(dead_code)]
82pub struct GdkWaylandDevice {
83 _data: [u8; 0],
84 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
85}
86
87impl ::std::fmt::Debug for GdkWaylandDevice {
88 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
89 f.debug_struct(&format!("GdkWaylandDevice @ {self:p}"))
90 .finish()
91 }
92}
93
94#[repr(C)]
95#[allow(dead_code)]
96pub struct GdkWaylandDisplay {
97 _data: [u8; 0],
98 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
99}
100
101impl ::std::fmt::Debug for GdkWaylandDisplay {
102 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
103 f.debug_struct(&format!("GdkWaylandDisplay @ {self:p}"))
104 .finish()
105 }
106}
107
108#[repr(C)]
109#[allow(dead_code)]
110pub struct GdkWaylandGLContext {
111 _data: [u8; 0],
112 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
113}
114
115impl ::std::fmt::Debug for GdkWaylandGLContext {
116 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
117 f.debug_struct(&format!("GdkWaylandGLContext @ {self:p}"))
118 .finish()
119 }
120}
121
122#[repr(C)]
123#[allow(dead_code)]
124pub struct GdkWaylandMonitor {
125 _data: [u8; 0],
126 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
127}
128
129impl ::std::fmt::Debug for GdkWaylandMonitor {
130 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
131 f.debug_struct(&format!("GdkWaylandMonitor @ {self:p}"))
132 .finish()
133 }
134}
135
136#[repr(C)]
137#[allow(dead_code)]
138pub struct GdkWaylandPopup {
139 _data: [u8; 0],
140 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
141}
142
143impl ::std::fmt::Debug for GdkWaylandPopup {
144 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
145 f.debug_struct(&format!("GdkWaylandPopup @ {self:p}"))
146 .finish()
147 }
148}
149
150#[repr(C)]
151#[allow(dead_code)]
152pub struct GdkWaylandSeat {
153 _data: [u8; 0],
154 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
155}
156
157impl ::std::fmt::Debug for GdkWaylandSeat {
158 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
159 f.debug_struct(&format!("GdkWaylandSeat @ {self:p}"))
160 .finish()
161 }
162}
163
164#[repr(C)]
165#[allow(dead_code)]
166pub struct GdkWaylandSurface {
167 _data: [u8; 0],
168 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
169}
170
171impl ::std::fmt::Debug for GdkWaylandSurface {
172 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
173 f.debug_struct(&format!("GdkWaylandSurface @ {self:p}"))
174 .finish()
175 }
176}
177
178#[repr(C)]
179#[allow(dead_code)]
180pub struct GdkWaylandToplevel {
181 _data: [u8; 0],
182 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
183}
184
185impl ::std::fmt::Debug for GdkWaylandToplevel {
186 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
187 f.debug_struct(&format!("GdkWaylandToplevel @ {self:p}"))
188 .finish()
189 }
190}
191
192extern "C" {
193
194 pub fn gdk_wayland_device_get_type() -> GType;
198 pub fn gdk_wayland_device_get_node_path(device: *mut GdkWaylandDevice) -> *const c_char;
199 pub fn gdk_wayland_device_get_wl_keyboard(device: *mut GdkWaylandDevice) -> gpointer;
200 pub fn gdk_wayland_device_get_wl_pointer(device: *mut GdkWaylandDevice) -> gpointer;
201 pub fn gdk_wayland_device_get_wl_seat(device: *mut GdkWaylandDevice) -> gpointer;
202 #[cfg(feature = "v4_4")]
203 #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))]
204 pub fn gdk_wayland_device_get_xkb_keymap(device: *mut GdkWaylandDevice) -> gpointer;
205
206 pub fn gdk_wayland_display_get_type() -> GType;
210 #[cfg(feature = "v4_4")]
211 #[cfg_attr(docsrs, doc(cfg(feature = "v4_4")))]
212 pub fn gdk_wayland_display_get_egl_display(display: *mut GdkWaylandDisplay) -> gpointer;
213 pub fn gdk_wayland_display_get_startup_notification_id(
214 display: *mut GdkWaylandDisplay,
215 ) -> *const c_char;
216 pub fn gdk_wayland_display_get_wl_compositor(display: *mut GdkWaylandDisplay) -> gpointer;
217 pub fn gdk_wayland_display_get_wl_display(display: *mut GdkWaylandDisplay) -> gpointer;
218 pub fn gdk_wayland_display_query_registry(
219 display: *mut GdkWaylandDisplay,
220 global: *const c_char,
221 ) -> gboolean;
222 pub fn gdk_wayland_display_set_cursor_theme(
223 display: *mut GdkWaylandDisplay,
224 name: *const c_char,
225 size: c_int,
226 );
227 pub fn gdk_wayland_display_set_startup_notification_id(
228 display: *mut GdkWaylandDisplay,
229 startup_id: *const c_char,
230 );
231
232 pub fn gdk_wayland_gl_context_get_type() -> GType;
236
237 pub fn gdk_wayland_monitor_get_type() -> GType;
241 pub fn gdk_wayland_monitor_get_wl_output(monitor: *mut GdkWaylandMonitor) -> gpointer;
242
243 pub fn gdk_wayland_popup_get_type() -> GType;
247
248 pub fn gdk_wayland_seat_get_type() -> GType;
252 pub fn gdk_wayland_seat_get_wl_seat(seat: *mut GdkWaylandSeat) -> gpointer;
253
254 pub fn gdk_wayland_surface_get_type() -> GType;
258 #[cfg(feature = "v4_18")]
259 #[cfg_attr(docsrs, doc(cfg(feature = "v4_18")))]
260 pub fn gdk_wayland_surface_force_next_commit(surface: *mut GdkWaylandSurface);
261 pub fn gdk_wayland_surface_get_wl_surface(surface: *mut GdkWaylandSurface) -> gpointer;
262
263 pub fn gdk_wayland_toplevel_get_type() -> GType;
267 #[cfg(feature = "v4_12")]
268 #[cfg_attr(docsrs, doc(cfg(feature = "v4_12")))]
269 pub fn gdk_wayland_toplevel_drop_exported_handle(
270 toplevel: *mut GdkWaylandToplevel,
271 handle: *const c_char,
272 );
273 pub fn gdk_wayland_toplevel_export_handle(
274 toplevel: *mut GdkWaylandToplevel,
275 callback: GdkWaylandToplevelExported,
276 user_data: gpointer,
277 destroy_func: glib::GDestroyNotify,
278 ) -> gboolean;
279 pub fn gdk_wayland_toplevel_set_application_id(
280 toplevel: *mut GdkWaylandToplevel,
281 application_id: *const c_char,
282 );
283 pub fn gdk_wayland_toplevel_set_transient_for_exported(
284 toplevel: *mut GdkWaylandToplevel,
285 parent_handle_str: *const c_char,
286 ) -> gboolean;
287 pub fn gdk_wayland_toplevel_unexport_handle(toplevel: *mut GdkWaylandToplevel);
288
289}