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
// This file is auto-generated by rute_gen. DO NOT EDIT.
use rute_ffi_base::*;

#[allow(unused_imports)]
use auto::object_ffi::*;
#[allow(unused_imports)]
use auto::palette_ffi::RUPalette;
#[allow(unused_imports)]
use auto::rect_ffi::RURect;
#[allow(unused_imports)]
use std::os::raw::c_void;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUStyleFuncs {
    pub polish: extern "C" fn(self_c: *const RUBase, widget: *const RUBase),
    pub unpolish: extern "C" fn(self_c: *const RUBase, widget: *const RUBase),
    pub polish_2: extern "C" fn(self_c: *const RUBase, application: *const RUBase),
    pub unpolish_2: extern "C" fn(self_c: *const RUBase, application: *const RUBase),
    pub polish_3: extern "C" fn(self_c: *const RUBase, palette: *const RUBase),
    pub item_pixmap_rect: extern "C" fn(
        self_c: *const RUBase,
        r: *const RUBase,
        flags: i32,
        pixmap: *const RUBase,
    ) -> RURect,
    pub draw_item_text: extern "C" fn(
        self_c: *const RUBase,
        painter: *const RUBase,
        rect: *const RUBase,
        flags: i32,
        pal: *const RUBase,
        enabled: bool,
        text: *const ::std::os::raw::c_char,
        text_role: u32,
    ),
    pub draw_item_pixmap: extern "C" fn(
        self_c: *const RUBase,
        painter: *const RUBase,
        rect: *const RUBase,
        alignment: i32,
        pixmap: *const RUBase,
    ),
    pub standard_palette: extern "C" fn(self_c: *const RUBase) -> RUPalette,
    pub proxy: extern "C" fn(self_c: *const RUBase) -> RUStyle,
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUStyleAllFuncs {
    pub object_funcs: *const RUObjectFuncs,
    pub style_funcs: *const RUStyleFuncs,
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUStyle {
    pub qt_data: *const RUBase,
    pub host_data: *const RUBase,
    pub all_funcs: *const RUStyleAllFuncs,
}