1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// This file was generated by gir (https://github.com/gtk-rs/gir)
// from
// from gir-files (https://github.com/gtk-rs/gir-files.git)
// DO NOT EDIT

use crate::ffi;
use glib::translate::*;

#[doc(alias = "panel_check_version")]
pub fn check_version(major: u32, minor: u32, micro: u32) -> bool {
    assert_initialized_main_thread!();
    unsafe { from_glib(ffi::panel_check_version(major, minor, micro)) }
}

#[doc(alias = "panel_finalize")]
pub fn finalize() {
    assert_initialized_main_thread!();
    unsafe {
        ffi::panel_finalize();
    }
}

#[doc(alias = "panel_get_major_version")]
#[doc(alias = "get_major_version")]
pub fn major_version() -> u32 {
    assert_initialized_main_thread!();
    unsafe { ffi::panel_get_major_version() }
}

#[doc(alias = "panel_get_micro_version")]
#[doc(alias = "get_micro_version")]
pub fn micro_version() -> u32 {
    assert_initialized_main_thread!();
    unsafe { ffi::panel_get_micro_version() }
}

#[doc(alias = "panel_get_minor_version")]
#[doc(alias = "get_minor_version")]
pub fn minor_version() -> u32 {
    assert_initialized_main_thread!();
    unsafe { ffi::panel_get_minor_version() }
}

#[doc(alias = "panel_get_resource")]
#[doc(alias = "get_resource")]
pub fn resource() -> gio::Resource {
    assert_initialized_main_thread!();
    unsafe { from_glib_full(ffi::panel_get_resource()) }
}

#[doc(alias = "panel_init")]
pub fn init() {
    assert_initialized_main_thread!();
    unsafe {
        ffi::panel_init();
    }
}