#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
#![allow(
clippy::approx_constant,
clippy::type_complexity,
clippy::unreadable_literal,
clippy::upper_case_acronyms
)]
#![cfg_attr(docsrs, feature(doc_cfg))]
mod manual;
pub use manual::*;
#[allow(unused_imports)]
use libc::{
c_char, c_double, c_float, c_int, c_long, c_short, c_uchar, c_uint, c_ulong, c_ushort, c_void,
intptr_t, size_t, ssize_t, uintptr_t, FILE,
};
#[allow(unused_imports)]
use glib::{gboolean, gconstpointer, gpointer, GType};
#[repr(C)]
pub struct _GdkX11AppLaunchContextClass {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11AppLaunchContextClass = *mut _GdkX11AppLaunchContextClass;
#[repr(C)]
pub struct _GdkX11CursorClass {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11CursorClass = *mut _GdkX11CursorClass;
#[repr(C)]
pub struct _GdkX11DeviceCoreClass {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11DeviceCoreClass = *mut _GdkX11DeviceCoreClass;
#[repr(C)]
pub struct _GdkX11DeviceManagerCoreClass {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11DeviceManagerCoreClass = *mut _GdkX11DeviceManagerCoreClass;
#[repr(C)]
pub struct _GdkX11DeviceManagerXI2Class {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11DeviceManagerXI2Class = *mut _GdkX11DeviceManagerXI2Class;
#[repr(C)]
pub struct _GdkX11DeviceXI2Class {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11DeviceXI2Class = *mut _GdkX11DeviceXI2Class;
#[repr(C)]
pub struct _GdkX11DisplayClass {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11DisplayClass = *mut _GdkX11DisplayClass;
#[repr(C)]
pub struct _GdkX11DisplayManagerClass {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11DisplayManagerClass = *mut _GdkX11DisplayManagerClass;
#[repr(C)]
pub struct _GdkX11DragContextClass {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11DragContextClass = *mut _GdkX11DragContextClass;
#[repr(C)]
pub struct _GdkX11GLContextClass {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11GLContextClass = *mut _GdkX11GLContextClass;
#[repr(C)]
pub struct _GdkX11KeymapClass {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11KeymapClass = *mut _GdkX11KeymapClass;
#[repr(C)]
pub struct _GdkX11MonitorClass {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11MonitorClass = *mut _GdkX11MonitorClass;
#[repr(C)]
pub struct _GdkX11ScreenClass {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11ScreenClass = *mut _GdkX11ScreenClass;
#[repr(C)]
pub struct _GdkX11VisualClass {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11VisualClass = *mut _GdkX11VisualClass;
#[repr(C)]
pub struct _GdkX11WindowClass {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
pub type GdkX11WindowClass = *mut _GdkX11WindowClass;
#[repr(C)]
pub struct GdkX11AppLaunchContext {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11AppLaunchContext {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11AppLaunchContext @ {self:p}"))
.finish()
}
}
#[repr(C)]
pub struct GdkX11Cursor {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11Cursor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11Cursor @ {self:p}")).finish()
}
}
#[repr(C)]
pub struct GdkX11DeviceCore {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11DeviceCore {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11DeviceCore @ {self:p}"))
.finish()
}
}
#[repr(C)]
pub struct GdkX11DeviceManagerCore {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11DeviceManagerCore {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11DeviceManagerCore @ {self:p}"))
.finish()
}
}
#[repr(C)]
pub struct GdkX11DeviceManagerXI2 {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11DeviceManagerXI2 {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11DeviceManagerXI2 @ {self:p}"))
.finish()
}
}
#[repr(C)]
pub struct GdkX11DeviceXI2 {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11DeviceXI2 {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11DeviceXI2 @ {self:p}"))
.finish()
}
}
#[repr(C)]
pub struct GdkX11Display {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11Display {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11Display @ {self:p}"))
.finish()
}
}
#[repr(C)]
pub struct GdkX11DisplayManager {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11DisplayManager {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11DisplayManager @ {self:p}"))
.finish()
}
}
#[repr(C)]
pub struct GdkX11DragContext {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11DragContext {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11DragContext @ {self:p}"))
.finish()
}
}
#[repr(C)]
pub struct GdkX11GLContext {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11GLContext {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11GLContext @ {self:p}"))
.finish()
}
}
#[repr(C)]
pub struct GdkX11Keymap {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11Keymap {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11Keymap @ {self:p}")).finish()
}
}
#[repr(C)]
pub struct GdkX11Monitor {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11Monitor {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11Monitor @ {self:p}"))
.finish()
}
}
#[repr(C)]
pub struct GdkX11Screen {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11Screen {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11Screen @ {self:p}")).finish()
}
}
#[repr(C)]
pub struct GdkX11Visual {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11Visual {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11Visual @ {self:p}")).finish()
}
}
#[repr(C)]
pub struct GdkX11Window {
_data: [u8; 0],
_marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
}
impl ::std::fmt::Debug for GdkX11Window {
fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
f.debug_struct(&format!("GdkX11Window @ {self:p}")).finish()
}
}
#[link(name = "gdk-3")]
extern "C" {
pub fn gdk_x11_app_launch_context_get_type() -> GType;
pub fn gdk_x11_cursor_get_type() -> GType;
pub fn gdk_x11_cursor_get_xcursor(cursor: *mut GdkX11Cursor) -> xlib::Cursor;
pub fn gdk_x11_cursor_get_xdisplay(cursor: *mut GdkX11Cursor) -> *mut xlib::Display;
pub fn gdk_x11_device_core_get_type() -> GType;
pub fn gdk_x11_device_manager_core_get_type() -> GType;
pub fn gdk_x11_device_manager_xi2_get_type() -> GType;
pub fn gdk_x11_device_xi2_get_type() -> GType;
pub fn gdk_x11_display_get_type() -> GType;
pub fn gdk_x11_display_get_glx_version(
display: *mut gdk::GdkDisplay,
major: *mut c_int,
minor: *mut c_int,
) -> gboolean;
pub fn gdk_x11_display_broadcast_startup_message(
display: *mut GdkX11Display,
message_type: *const c_char,
...
);
pub fn gdk_x11_display_error_trap_pop(display: *mut GdkX11Display) -> c_int;
pub fn gdk_x11_display_error_trap_pop_ignored(display: *mut GdkX11Display);
pub fn gdk_x11_display_error_trap_push(display: *mut GdkX11Display);
pub fn gdk_x11_display_get_startup_notification_id(
display: *mut GdkX11Display,
) -> *const c_char;
pub fn gdk_x11_display_get_user_time(display: *mut GdkX11Display) -> u32;
pub fn gdk_x11_display_get_xdisplay(display: *mut GdkX11Display) -> *mut xlib::Display;
pub fn gdk_x11_display_grab(display: *mut GdkX11Display);
pub fn gdk_x11_display_set_cursor_theme(
display: *mut GdkX11Display,
theme: *const c_char,
size: c_int,
);
pub fn gdk_x11_display_set_startup_notification_id(
display: *mut GdkX11Display,
startup_id: *const c_char,
);
pub fn gdk_x11_display_set_window_scale(display: *mut GdkX11Display, scale: c_int);
pub fn gdk_x11_display_string_to_compound_text(
display: *mut GdkX11Display,
str: *const c_char,
encoding: *mut gdk::GdkAtom,
format: *mut c_int,
ctext: *mut *mut u8,
length: *mut c_int,
) -> c_int;
pub fn gdk_x11_display_text_property_to_text_list(
display: *mut GdkX11Display,
encoding: gdk::GdkAtom,
format: c_int,
text: *const u8,
length: c_int,
list: *mut *mut *mut c_char,
) -> c_int;
pub fn gdk_x11_display_ungrab(display: *mut GdkX11Display);
pub fn gdk_x11_display_utf8_to_compound_text(
display: *mut GdkX11Display,
str: *const c_char,
encoding: *mut gdk::GdkAtom,
format: *mut c_int,
ctext: *mut *mut u8,
length: *mut c_int,
) -> gboolean;
pub fn gdk_x11_display_manager_get_type() -> GType;
pub fn gdk_x11_drag_context_get_type() -> GType;
pub fn gdk_x11_gl_context_get_type() -> GType;
pub fn gdk_x11_keymap_get_type() -> GType;
pub fn gdk_x11_keymap_get_group_for_state(keymap: *mut GdkX11Keymap, state: c_uint) -> c_int;
pub fn gdk_x11_keymap_key_is_modifier(keymap: *mut GdkX11Keymap, keycode: c_uint) -> gboolean;
pub fn gdk_x11_monitor_get_type() -> GType;
pub fn gdk_x11_monitor_get_output(monitor: *mut gdk::GdkMonitor) -> xlib::XID;
pub fn gdk_x11_screen_get_type() -> GType;
pub fn gdk_x11_screen_get_current_desktop(screen: *mut GdkX11Screen) -> u32;
pub fn gdk_x11_screen_get_monitor_output(
screen: *mut GdkX11Screen,
monitor_num: c_int,
) -> xlib::XID;
pub fn gdk_x11_screen_get_number_of_desktops(screen: *mut GdkX11Screen) -> u32;
pub fn gdk_x11_screen_get_screen_number(screen: *mut GdkX11Screen) -> c_int;
pub fn gdk_x11_screen_get_window_manager_name(screen: *mut GdkX11Screen) -> *const c_char;
pub fn gdk_x11_screen_get_xscreen(screen: *mut GdkX11Screen) -> *mut xlib::Screen;
pub fn gdk_x11_screen_lookup_visual(
screen: *mut GdkX11Screen,
xvisualid: xlib::VisualID,
) -> *mut GdkX11Visual;
pub fn gdk_x11_screen_supports_net_wm_hint(
screen: *mut GdkX11Screen,
property: gdk::GdkAtom,
) -> gboolean;
pub fn gdk_x11_visual_get_type() -> GType;
pub fn gdk_x11_visual_get_xvisual(visual: *mut GdkX11Visual) -> *mut xlib::Visual;
pub fn gdk_x11_window_get_type() -> GType;
pub fn gdk_x11_window_foreign_new_for_display(
display: *mut GdkX11Display,
window: xlib::Window,
) -> *mut gdk::GdkWindow;
pub fn gdk_x11_window_lookup_for_display(
display: *mut GdkX11Display,
window: xlib::Window,
) -> *mut GdkX11Window;
pub fn gdk_x11_window_get_desktop(window: *mut GdkX11Window) -> u32;
pub fn gdk_x11_window_get_xid(window: *mut GdkX11Window) -> xlib::Window;
pub fn gdk_x11_window_move_to_current_desktop(window: *mut GdkX11Window);
pub fn gdk_x11_window_move_to_desktop(window: *mut GdkX11Window, desktop: u32);
pub fn gdk_x11_window_set_frame_extents(
window: *mut GdkX11Window,
left: c_int,
right: c_int,
top: c_int,
bottom: c_int,
);
pub fn gdk_x11_window_set_frame_sync_enabled(
window: *mut GdkX11Window,
frame_sync_enabled: gboolean,
);
pub fn gdk_x11_window_set_hide_titlebar_when_maximized(
window: *mut GdkX11Window,
hide_titlebar_when_maximized: gboolean,
);
pub fn gdk_x11_window_set_theme_variant(window: *mut GdkX11Window, variant: *mut c_char);
pub fn gdk_x11_window_set_user_time(window: *mut GdkX11Window, timestamp: u32);
pub fn gdk_x11_window_set_utf8_property(
window: *mut GdkX11Window,
name: *const c_char,
value: *const c_char,
);
pub fn gdk_x11_atom_to_xatom(atom: gdk::GdkAtom) -> xlib::Atom;
pub fn gdk_x11_atom_to_xatom_for_display(
display: *mut GdkX11Display,
atom: gdk::GdkAtom,
) -> xlib::Atom;
pub fn gdk_x11_device_get_id(device: *mut GdkX11DeviceCore) -> c_int;
pub fn gdk_x11_device_manager_lookup(
device_manager: *mut GdkX11DeviceManagerCore,
device_id: c_int,
) -> *mut GdkX11DeviceCore;
pub fn gdk_x11_free_compound_text(ctext: *mut u8);
pub fn gdk_x11_free_text_list(list: *mut *mut c_char);
pub fn gdk_x11_get_default_root_xwindow() -> xlib::Window;
pub fn gdk_x11_get_default_screen() -> c_int;
pub fn gdk_x11_get_default_xdisplay() -> *mut xlib::Display;
#[cfg(feature = "v3_24_2")]
#[cfg_attr(docsrs, doc(cfg(feature = "v3_24_2")))]
pub fn gdk_x11_get_parent_relative_pattern() -> *mut cairo::cairo_pattern_t;
pub fn gdk_x11_get_server_time(window: *mut GdkX11Window) -> u32;
pub fn gdk_x11_get_xatom_by_name(atom_name: *const c_char) -> xlib::Atom;
pub fn gdk_x11_get_xatom_by_name_for_display(
display: *mut GdkX11Display,
atom_name: *const c_char,
) -> xlib::Atom;
pub fn gdk_x11_get_xatom_name(xatom: xlib::Atom) -> *const c_char;
pub fn gdk_x11_get_xatom_name_for_display(
display: *mut GdkX11Display,
xatom: xlib::Atom,
) -> *const c_char;
pub fn gdk_x11_grab_server();
pub fn gdk_x11_lookup_xdisplay(xdisplay: *mut xlib::Display) -> *mut GdkX11Display;
pub fn gdk_x11_register_standard_event_type(
display: *mut GdkX11Display,
event_base: c_int,
n_events: c_int,
);
pub fn gdk_x11_set_sm_client_id(sm_client_id: *const c_char);
pub fn gdk_x11_ungrab_server();
pub fn gdk_x11_xatom_to_atom(xatom: xlib::Atom) -> gdk::GdkAtom;
pub fn gdk_x11_xatom_to_atom_for_display(
display: *mut GdkX11Display,
xatom: xlib::Atom,
) -> gdk::GdkAtom;
}