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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
use rute_ffi_base::*;
#[allow(unused_imports)]
use auto::object_ffi::*;
#[allow(unused_imports)]
use std::os::raw::c_void;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUCoreApplicationFuncs {
pub set_organization_domain:
extern "C" fn(self_c: *const RUBase, org_domain: *const ::std::os::raw::c_char),
pub organization_domain: extern "C" fn(self_c: *const RUBase) -> *const ::std::os::raw::c_char,
pub set_organization_name:
extern "C" fn(self_c: *const RUBase, org_name: *const ::std::os::raw::c_char),
pub organization_name: extern "C" fn(self_c: *const RUBase) -> *const ::std::os::raw::c_char,
pub set_application_name:
extern "C" fn(self_c: *const RUBase, application: *const ::std::os::raw::c_char),
pub application_name: extern "C" fn(self_c: *const RUBase) -> *const ::std::os::raw::c_char,
pub set_application_version:
extern "C" fn(self_c: *const RUBase, version: *const ::std::os::raw::c_char),
pub application_version: extern "C" fn(self_c: *const RUBase) -> *const ::std::os::raw::c_char,
pub set_setuid_allowed: extern "C" fn(self_c: *const RUBase, allow: bool),
pub is_setuid_allowed: extern "C" fn(self_c: *const RUBase) -> bool,
pub instance: extern "C" fn(self_c: *const RUBase) -> RUCoreApplication,
pub exec: extern "C" fn(self_c: *const RUBase) -> i32,
pub exit: extern "C" fn(self_c: *const RUBase, retcode: i32),
pub send_event:
extern "C" fn(self_c: *const RUBase, receiver: *const RUBase, event: *const RUBase) -> bool,
pub post_event: extern "C" fn(
self_c: *const RUBase,
receiver: *const RUBase,
event: *const RUBase,
priority: i32,
),
pub send_posted_events:
extern "C" fn(self_c: *const RUBase, receiver: *const RUBase, event_type: i32),
pub remove_posted_events:
extern "C" fn(self_c: *const RUBase, receiver: *const RUBase, event_type: i32),
pub has_pending_events: extern "C" fn(self_c: *const RUBase) -> bool,
pub starting_up: extern "C" fn(self_c: *const RUBase) -> bool,
pub closing_down: extern "C" fn(self_c: *const RUBase) -> bool,
pub application_dir_path: extern "C" fn(self_c: *const RUBase) -> *const ::std::os::raw::c_char,
pub application_file_path:
extern "C" fn(self_c: *const RUBase) -> *const ::std::os::raw::c_char,
pub application_pid: extern "C" fn(self_c: *const RUBase) -> i64,
pub add_library_path: extern "C" fn(self_c: *const RUBase, arg0: *const ::std::os::raw::c_char),
pub remove_library_path:
extern "C" fn(self_c: *const RUBase, arg0: *const ::std::os::raw::c_char),
pub flush: extern "C" fn(self_c: *const RUBase),
pub is_quit_lock_enabled: extern "C" fn(self_c: *const RUBase) -> bool,
pub set_quit_lock_enabled: extern "C" fn(self_c: *const RUBase, enabled: bool),
pub quit: extern "C" fn(self_c: *const RUBase),
pub set_about_to_quit_event: extern "C" fn(
object: *const RUBase,
user_data: *const c_void,
trampoline_func: *const c_void,
callback: *const c_void,
),
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUCoreApplicationAllFuncs {
pub object_funcs: *const RUObjectFuncs,
pub core_application_funcs: *const RUCoreApplicationFuncs,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUCoreApplication {
pub qt_data: *const RUBase,
pub host_data: *const RUBase,
pub all_funcs: *const RUCoreApplicationAllFuncs,
}