1use rute_ffi_base::*;
3
4#[allow(unused_imports)]
5use auto::color_ffi::RUColor;
6#[allow(unused_imports)]
7use auto::image_ffi::RUImage;
8#[allow(unused_imports)]
9use auto::pixmap_ffi::RUPixmap;
10#[allow(unused_imports)]
11use std::os::raw::c_void;
12#[repr(C)]
13#[derive(Copy, Clone)]
14pub struct RUBrushFuncs {
15 pub destroy: extern "C" fn(self_c: *const RUBase),
16 pub swap: extern "C" fn(self_c: *const RUBase, other: *const RUBase),
17 pub style: extern "C" fn(self_c: *const RUBase) -> u32,
18 pub set_style: extern "C" fn(self_c: *const RUBase, arg0: u32),
19 pub set_transform: extern "C" fn(self_c: *const RUBase, arg0: *const RUBase),
20 pub texture: extern "C" fn(self_c: *const RUBase) -> RUPixmap,
21 pub set_texture: extern "C" fn(self_c: *const RUBase, pixmap: *const RUBase),
22 pub texture_image: extern "C" fn(self_c: *const RUBase) -> RUImage,
23 pub set_texture_image: extern "C" fn(self_c: *const RUBase, image: *const RUBase),
24 pub color: extern "C" fn(self_c: *const RUBase) -> RUColor,
25 pub set_color: extern "C" fn(self_c: *const RUBase, color: *const RUBase),
26 pub set_color_2: extern "C" fn(self_c: *const RUBase, color: u32),
27 pub is_opaque: extern "C" fn(self_c: *const RUBase) -> bool,
28 pub is_detached: extern "C" fn(self_c: *const RUBase) -> bool,
29}
30
31#[repr(C)]
32#[derive(Copy, Clone)]
33pub struct RUBrushAllFuncs {
34 pub brush_funcs: *const RUBrushFuncs,
35}
36
37#[repr(C)]
38#[derive(Copy, Clone)]
39pub struct RUBrush {
40 pub qt_data: *const RUBase,
41 pub host_data: *const RUBase,
42 pub all_funcs: *const RUBrushAllFuncs,
43}