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
use rute_ffi_base::*;
#[allow(unused_imports)]
use auto::brush_ffi::RUBrush;
#[allow(unused_imports)]
use auto::color_ffi::RUColor;
#[allow(unused_imports)]
use std::os::raw::c_void;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUPaletteFuncs {
pub destroy: extern "C" fn(self_c: *const RUBase),
pub swap: extern "C" fn(self_c: *const RUBase, other: *const RUBase),
pub current_color_group: extern "C" fn(self_c: *const RUBase) -> i32,
pub set_current_color_group: extern "C" fn(self_c: *const RUBase, cg: i32),
pub color: extern "C" fn(self_c: *const RUBase, cg: i32, cr: i32) -> RUColor,
pub brush: extern "C" fn(self_c: *const RUBase, cg: i32, cr: i32) -> RUBrush,
pub set_color: extern "C" fn(self_c: *const RUBase, cg: i32, cr: i32, color: *const RUBase),
pub set_color_2: extern "C" fn(self_c: *const RUBase, cr: i32, color: *const RUBase),
pub set_brush: extern "C" fn(self_c: *const RUBase, cr: i32, brush: *const RUBase),
pub is_brush_set: extern "C" fn(self_c: *const RUBase, cg: i32, cr: i32) -> bool,
pub set_brush_2: extern "C" fn(self_c: *const RUBase, cg: i32, cr: i32, brush: *const RUBase),
pub set_color_group: extern "C" fn(
self_c: *const RUBase,
cr: i32,
window_text: *const RUBase,
button: *const RUBase,
light: *const RUBase,
dark: *const RUBase,
mid: *const RUBase,
text: *const RUBase,
bright_text: *const RUBase,
base: *const RUBase,
window: *const RUBase,
),
pub is_equal: extern "C" fn(self_c: *const RUBase, cr1: i32, cr2: i32) -> bool,
pub color_2: extern "C" fn(self_c: *const RUBase, cr: i32) -> RUColor,
pub brush_2: extern "C" fn(self_c: *const RUBase, cr: i32) -> RUBrush,
pub foreground: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub window_text: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub button: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub light: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub dark: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub mid: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub text: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub base: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub alternate_base: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub tool_tip_base: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub tool_tip_text: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub background: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub window: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub midlight: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub bright_text: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub button_text: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub shadow: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub highlight: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub highlighted_text: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub link: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub link_visited: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub is_copy_of: extern "C" fn(self_c: *const RUBase, p: *const RUBase) -> bool,
pub cache_key: extern "C" fn(self_c: *const RUBase) -> i64,
pub resolve: extern "C" fn(self_c: *const RUBase, arg0: *const RUBase) -> RUPalette,
pub resolve_2: extern "C" fn(self_c: *const RUBase) -> u32,
pub resolve_3: extern "C" fn(self_c: *const RUBase, mask: u32),
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUPaletteAllFuncs {
pub palette_funcs: *const RUPaletteFuncs,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUPalette {
pub qt_data: *const RUBase,
pub host_data: *const RUBase,
pub all_funcs: *const RUPaletteAllFuncs,
}