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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
use rute_ffi_base::*;
#[allow(unused_imports)]
use auto::pixmap_ffi::RUPixmap;
#[allow(unused_imports)]
use auto::size_ffi::RUSize;
#[allow(unused_imports)]
use std::os::raw::c_void;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUIconFuncs {
pub destroy: extern "C" fn(self_c: *const RUBase),
pub swap: extern "C" fn(self_c: *const RUBase, other: *const RUBase),
pub pixmap: extern "C" fn(self_c: *const RUBase, size: *const RUBase, mode: i32, state: i32)
-> RUPixmap,
pub pixmap_2:
extern "C" fn(self_c: *const RUBase, w: i32, h: i32, mode: i32, state: i32) -> RUPixmap,
pub pixmap_3:
extern "C" fn(self_c: *const RUBase, extent: i32, mode: i32, state: i32) -> RUPixmap,
pub pixmap_4: extern "C" fn(
self_c: *const RUBase,
window: *const RUBase,
size: *const RUBase,
mode: i32,
state: i32,
) -> RUPixmap,
pub actual_size:
extern "C" fn(self_c: *const RUBase, size: *const RUBase, mode: i32, state: i32) -> RUSize,
pub actual_size_2: extern "C" fn(
self_c: *const RUBase,
window: *const RUBase,
size: *const RUBase,
mode: i32,
state: i32,
) -> RUSize,
pub name: extern "C" fn(self_c: *const RUBase) -> *const ::std::os::raw::c_char,
pub paint: extern "C" fn(
self_c: *const RUBase,
painter: *const RUBase,
rect: *const RUBase,
alignment: i32,
mode: i32,
state: i32,
),
pub paint_2: extern "C" fn(
self_c: *const RUBase,
painter: *const RUBase,
x: i32,
y: i32,
w: i32,
h: i32,
alignment: i32,
mode: i32,
state: i32,
),
pub is_null: extern "C" fn(self_c: *const RUBase) -> bool,
pub is_detached: extern "C" fn(self_c: *const RUBase) -> bool,
pub detach: extern "C" fn(self_c: *const RUBase),
pub cache_key: extern "C" fn(self_c: *const RUBase) -> i64,
pub add_pixmap:
extern "C" fn(self_c: *const RUBase, pixmap: *const RUBase, mode: i32, state: i32),
pub add_file: extern "C" fn(
self_c: *const RUBase,
file_name: *const ::std::os::raw::c_char,
size: *const RUBase,
mode: i32,
state: i32,
),
pub set_is_mask: extern "C" fn(self_c: *const RUBase, is_mask: bool),
pub is_mask: extern "C" fn(self_c: *const RUBase) -> bool,
pub from_theme:
extern "C" fn(self_c: *const RUBase, name: *const ::std::os::raw::c_char) -> RUIcon,
pub from_theme_2: extern "C" fn(
self_c: *const RUBase,
name: *const ::std::os::raw::c_char,
fallback: *const RUBase,
) -> RUIcon,
pub has_theme_icon:
extern "C" fn(self_c: *const RUBase, name: *const ::std::os::raw::c_char) -> bool,
pub theme_name: extern "C" fn(self_c: *const RUBase) -> *const ::std::os::raw::c_char,
pub set_theme_name: extern "C" fn(self_c: *const RUBase, path: *const ::std::os::raw::c_char),
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUIconAllFuncs {
pub icon_funcs: *const RUIconFuncs,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUIcon {
pub qt_data: *const RUBase,
pub host_data: *const RUBase,
pub all_funcs: *const RUIconAllFuncs,
}