rute/auto/
paint_engine_state_ffi.rs1use rute_ffi_base::*;
3
4#[allow(unused_imports)]
5use auto::brush_ffi::RUBrush;
6#[allow(unused_imports)]
7use auto::font_ffi::RUFont;
8#[allow(unused_imports)]
9use auto::painter_ffi::RUPainter;
10#[allow(unused_imports)]
11use auto::pen_ffi::RUPen;
12#[allow(unused_imports)]
13use auto::point_f_ffi::RUPointF;
14#[allow(unused_imports)]
15use auto::region_ffi::RURegion;
16#[allow(unused_imports)]
17use std::os::raw::c_void;
18#[repr(C)]
19#[derive(Copy, Clone)]
20pub struct RUPaintEngineStateFuncs {
21 pub destroy: extern "C" fn(self_c: *const RUBase),
22 pub state: extern "C" fn(self_c: *const RUBase) -> u32,
23 pub pen: extern "C" fn(self_c: *const RUBase) -> RUPen,
24 pub brush: extern "C" fn(self_c: *const RUBase) -> RUBrush,
25 pub brush_origin: extern "C" fn(self_c: *const RUBase) -> RUPointF,
26 pub background_brush: extern "C" fn(self_c: *const RUBase) -> RUBrush,
27 pub background_mode: extern "C" fn(self_c: *const RUBase) -> u32,
28 pub font: extern "C" fn(self_c: *const RUBase) -> RUFont,
29 pub clip_operation: extern "C" fn(self_c: *const RUBase) -> u32,
30 pub clip_region: extern "C" fn(self_c: *const RUBase) -> RURegion,
31 pub is_clip_enabled: extern "C" fn(self_c: *const RUBase) -> bool,
32 pub render_hints: extern "C" fn(self_c: *const RUBase) -> u32,
33 pub composition_mode: extern "C" fn(self_c: *const RUBase) -> u32,
34 pub opacity: extern "C" fn(self_c: *const RUBase) -> f32,
35 pub painter: extern "C" fn(self_c: *const RUBase) -> RUPainter,
36 pub brush_needs_resolving: extern "C" fn(self_c: *const RUBase) -> bool,
37 pub pen_needs_resolving: extern "C" fn(self_c: *const RUBase) -> bool,
38}
39
40#[repr(C)]
41#[derive(Copy, Clone)]
42pub struct RUPaintEngineStateAllFuncs {
43 pub paint_engine_state_funcs: *const RUPaintEngineStateFuncs,
44}
45
46#[repr(C)]
47#[derive(Copy, Clone)]
48pub struct RUPaintEngineState {
49 pub qt_data: *const RUBase,
50 pub host_data: *const RUBase,
51 pub all_funcs: *const RUPaintEngineStateAllFuncs,
52}