gtk4_session_lock/auto/
functions.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
6use crate::{ffi};
7use glib::{translate::*};
8
9
10/// May block for a Wayland roundtrip the first time it's called.
11///
12/// # Returns
13///
14/// [`true`] if the platform is Wayland and Wayland compositor supports the
15/// Session Lock protocol.
16#[doc(alias = "gtk_session_lock_is_supported")]
17pub fn is_supported() -> bool {
18    assert_initialized_main_thread!();
19    unsafe {
20        from_glib(ffi::gtk_session_lock_is_supported())
21    }
22}