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
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 RUPenFuncs {
pub destroy: extern "C" fn(self_c: *const RUBase),
pub swap: extern "C" fn(self_c: *const RUBase, other: *const RUBase),
pub style: extern "C" fn(self_c: *const RUBase) -> i32,
pub set_style: extern "C" fn(self_c: *const RUBase, arg0: i32),
pub dash_offset: extern "C" fn(self_c: *const RUBase) -> f32,
pub set_dash_offset: extern "C" fn(self_c: *const RUBase, doffset: f32),
pub miter_limit: extern "C" fn(self_c: *const RUBase) -> f32,
pub set_miter_limit: extern "C" fn(self_c: *const RUBase, limit: f32),
pub width_f: extern "C" fn(self_c: *const RUBase) -> f32,
pub set_width_f: extern "C" fn(self_c: *const RUBase, width: f32),
pub width: extern "C" fn(self_c: *const RUBase) -> i32,
pub set_width: extern "C" fn(self_c: *const RUBase, width: i32),
pub color: extern "C" fn(self_c: *const RUBase) -> RUColor,
pub set_color: extern "C" fn(self_c: *const RUBase, color: *const RUBase),
pub brush: extern "C" fn(self_c: *const RUBase) -> RUBrush,
pub set_brush: extern "C" fn(self_c: *const RUBase, brush: *const RUBase),
pub is_solid: extern "C" fn(self_c: *const RUBase) -> bool,
pub cap_style: extern "C" fn(self_c: *const RUBase) -> i32,
pub set_cap_style: extern "C" fn(self_c: *const RUBase, pcs: i32),
pub join_style: extern "C" fn(self_c: *const RUBase) -> i32,
pub set_join_style: extern "C" fn(self_c: *const RUBase, pcs: i32),
pub is_cosmetic: extern "C" fn(self_c: *const RUBase) -> bool,
pub set_cosmetic: extern "C" fn(self_c: *const RUBase, cosmetic: bool),
pub is_detached: extern "C" fn(self_c: *const RUBase) -> bool,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUPenAllFuncs {
pub pen_funcs: *const RUPenFuncs,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUPen {
pub qt_data: *const RUBase,
pub host_data: *const RUBase,
pub all_funcs: *const RUPenAllFuncs,
}