libpanel/auto/inhibitor.rs
1// This file was generated by gir (https://github.com/gtk-rs/gir)
2// from
3// from gir-files (https://github.com/gtk-rs/gir-files.git)
4// DO NOT EDIT
5
6use crate::ffi;
7use glib::translate::*;
8
9glib::wrapper! {
10 #[doc(alias = "PanelInhibitor")]
11 pub struct Inhibitor(Object<ffi::PanelInhibitor, ffi::PanelInhibitorClass>);
12
13 match fn {
14 type_ => || ffi::panel_inhibitor_get_type(),
15 }
16}
17
18impl Inhibitor {
19 #[doc(alias = "panel_inhibitor_uninhibit")]
20 pub fn uninhibit(&self) {
21 unsafe {
22 ffi::panel_inhibitor_uninhibit(self.to_glib_none().0);
23 }
24 }
25}