gdk4_macos_sys/
lib.rs
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 gdk4_sys as gdk;
15use glib_sys as glib;
16
17#[cfg(unix)]
18#[allow(unused_imports)]
19use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t};
20#[allow(unused_imports)]
21use libc::{intptr_t, off_t, size_t, ssize_t, time_t, uintptr_t, FILE};
22#[allow(unused_imports)]
23use std::ffi::{
24 c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
25};
26
27#[allow(unused_imports)]
28use glib::{gboolean, gconstpointer, gpointer, GType};
29
30#[repr(C)]
32#[allow(dead_code)]
33pub struct _GdkMacosDeviceClass {
34 _data: [u8; 0],
35 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
36}
37
38pub type GdkMacosDeviceClass = _GdkMacosDeviceClass;
39
40#[repr(C)]
41#[allow(dead_code)]
42pub struct _GdkMacosDisplayClass {
43 _data: [u8; 0],
44 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
45}
46
47pub type GdkMacosDisplayClass = _GdkMacosDisplayClass;
48
49#[repr(C)]
50#[allow(dead_code)]
51pub struct _GdkMacosGLContextClass {
52 _data: [u8; 0],
53 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
54}
55
56pub type GdkMacosGLContextClass = _GdkMacosGLContextClass;
57
58#[repr(C)]
59#[allow(dead_code)]
60pub struct _GdkMacosKeymapClass {
61 _data: [u8; 0],
62 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
63}
64
65pub type GdkMacosKeymapClass = _GdkMacosKeymapClass;
66
67#[repr(C)]
68#[allow(dead_code)]
69pub struct _GdkMacosMonitorClass {
70 _data: [u8; 0],
71 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
72}
73
74pub type GdkMacosMonitorClass = _GdkMacosMonitorClass;
75
76#[repr(C)]
77#[allow(dead_code)]
78pub struct _GdkMacosSeatClass {
79 _data: [u8; 0],
80 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
81}
82
83pub type GdkMacosSeatClass = _GdkMacosSeatClass;
84
85#[repr(C)]
86#[allow(dead_code)]
87pub struct _GdkMacosSurfaceClass {
88 _data: [u8; 0],
89 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
90}
91
92pub type GdkMacosSurfaceClass = _GdkMacosSurfaceClass;
93
94#[repr(C)]
96#[allow(dead_code)]
97pub struct GdkMacosDevice {
98 _data: [u8; 0],
99 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
100}
101
102impl ::std::fmt::Debug for GdkMacosDevice {
103 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
104 f.debug_struct(&format!("GdkMacosDevice @ {self:p}"))
105 .finish()
106 }
107}
108
109#[repr(C)]
110#[allow(dead_code)]
111pub struct GdkMacosDisplay {
112 _data: [u8; 0],
113 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
114}
115
116impl ::std::fmt::Debug for GdkMacosDisplay {
117 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
118 f.debug_struct(&format!("GdkMacosDisplay @ {self:p}"))
119 .finish()
120 }
121}
122
123#[repr(C)]
124#[allow(dead_code)]
125pub struct GdkMacosGLContext {
126 _data: [u8; 0],
127 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
128}
129
130impl ::std::fmt::Debug for GdkMacosGLContext {
131 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
132 f.debug_struct(&format!("GdkMacosGLContext @ {self:p}"))
133 .finish()
134 }
135}
136
137#[repr(C)]
138#[allow(dead_code)]
139pub struct GdkMacosKeymap {
140 _data: [u8; 0],
141 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
142}
143
144impl ::std::fmt::Debug for GdkMacosKeymap {
145 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
146 f.debug_struct(&format!("GdkMacosKeymap @ {self:p}"))
147 .finish()
148 }
149}
150
151#[repr(C)]
152#[allow(dead_code)]
153pub struct GdkMacosMonitor {
154 _data: [u8; 0],
155 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
156}
157
158impl ::std::fmt::Debug for GdkMacosMonitor {
159 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
160 f.debug_struct(&format!("GdkMacosMonitor @ {self:p}"))
161 .finish()
162 }
163}
164
165#[repr(C)]
166#[allow(dead_code)]
167pub struct GdkMacosSeat {
168 _data: [u8; 0],
169 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
170}
171
172impl ::std::fmt::Debug for GdkMacosSeat {
173 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
174 f.debug_struct(&format!("GdkMacosSeat @ {self:p}")).finish()
175 }
176}
177
178#[repr(C)]
179#[allow(dead_code)]
180pub struct GdkMacosSurface {
181 _data: [u8; 0],
182 _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
183}
184
185impl ::std::fmt::Debug for GdkMacosSurface {
186 fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
187 f.debug_struct(&format!("GdkMacosSurface @ {self:p}"))
188 .finish()
189 }
190}
191
192extern "C" {
193
194 pub fn gdk_macos_device_get_type() -> GType;
198
199 pub fn gdk_macos_display_get_type() -> GType;
203
204 pub fn gdk_macos_gl_context_get_type() -> GType;
208
209 pub fn gdk_macos_keymap_get_type() -> GType;
213
214 pub fn gdk_macos_monitor_get_type() -> GType;
218 pub fn gdk_macos_monitor_get_workarea(
219 monitor: *mut gdk::GdkMonitor,
220 geometry: *mut gdk::GdkRectangle,
221 );
222
223 pub fn gdk_macos_seat_get_type() -> GType;
227
228 pub fn gdk_macos_surface_get_type() -> GType;
232 #[cfg(feature = "v4_8")]
233 #[cfg_attr(docsrs, doc(cfg(feature = "v4_8")))]
234 pub fn gdk_macos_surface_get_native_window(self_: *mut GdkMacosSurface) -> gpointer;
235
236}