gtk4_session_lock_sys/
lib.rs

1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from ..
3// from ../gir-files
4// DO NOT EDIT
5
6#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
7#![allow(clippy::approx_constant, clippy::type_complexity, clippy::unreadable_literal, clippy::upper_case_acronyms)]
8#![cfg_attr(docsrs, feature(doc_cfg))]
9
10use glib_sys as glib;
11use gobject_sys as gobject;
12use gdk4_sys as gdk;
13use gtk4_sys as gtk;
14
15#[allow(unused_imports)]
16use std::ffi::{c_int, c_char, c_uchar, c_float, c_uint, c_double,
17    c_short, c_ushort, c_long, c_ulong, c_void};
18#[allow(unused_imports)]
19use libc::{size_t, ssize_t, time_t, off_t, intptr_t, uintptr_t, FILE};
20#[cfg(unix)]
21#[allow(unused_imports)]
22use libc::{dev_t, gid_t, pid_t, socklen_t, uid_t};
23
24#[allow(unused_imports)]
25use glib::{gboolean, gconstpointer, gpointer, GType};
26
27// Records
28#[derive(Copy, Clone)]
29#[repr(C)]
30pub struct GtkSessionLockInstanceClass {
31    pub parent_class: gobject::GObjectClass,
32}
33
34impl ::std::fmt::Debug for GtkSessionLockInstanceClass {
35    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
36        f.debug_struct(&format!("GtkSessionLockInstanceClass @ {self:p}"))
37         .field("parent_class", &self.parent_class)
38         .finish()
39    }
40}
41
42// Classes
43#[repr(C)]
44#[allow(dead_code)]
45pub struct GtkSessionLockInstance {
46    _data: [u8; 0],
47    _marker: core::marker::PhantomData<(*mut u8, core::marker::PhantomPinned)>,
48}
49
50impl ::std::fmt::Debug for GtkSessionLockInstance {
51    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
52        f.debug_struct(&format!("GtkSessionLockInstance @ {self:p}"))
53         .finish()
54    }
55}
56
57extern "C" {
58
59    //=========================================================================
60    // GtkSessionLockInstance
61    //=========================================================================
62    #[cfg(feature = "v1_1")]
63    #[cfg_attr(docsrs, doc(cfg(feature = "v1_1")))]
64    pub fn gtk_session_lock_instance_get_type() -> GType;
65    #[cfg(feature = "v1_1")]
66    #[cfg_attr(docsrs, doc(cfg(feature = "v1_1")))]
67    pub fn gtk_session_lock_instance_new() -> *mut GtkSessionLockInstance;
68    #[cfg(feature = "v1_1")]
69    #[cfg_attr(docsrs, doc(cfg(feature = "v1_1")))]
70    pub fn gtk_session_lock_instance_assign_window_to_monitor(self_: *mut GtkSessionLockInstance, window: *mut gtk::GtkWindow, monitor: *mut gdk::GdkMonitor);
71    #[cfg(feature = "v1_1")]
72    #[cfg_attr(docsrs, doc(cfg(feature = "v1_1")))]
73    pub fn gtk_session_lock_instance_is_locked(self_: *mut GtkSessionLockInstance) -> gboolean;
74    #[cfg(feature = "v1_1")]
75    #[cfg_attr(docsrs, doc(cfg(feature = "v1_1")))]
76    pub fn gtk_session_lock_instance_lock(self_: *mut GtkSessionLockInstance) -> gboolean;
77    #[cfg(feature = "v1_1")]
78    #[cfg_attr(docsrs, doc(cfg(feature = "v1_1")))]
79    pub fn gtk_session_lock_instance_unlock(self_: *mut GtkSessionLockInstance);
80
81    //=========================================================================
82    // Other functions
83    //=========================================================================
84    pub fn gtk_session_lock_is_supported() -> gboolean;
85
86}