rute/auto/
paint_engine_ffi.rs1use rute_ffi_base::*;
3
4#[allow(unused_imports)]
5use auto::paint_device_ffi::RUPaintDevice;
6#[allow(unused_imports)]
7use auto::point_ffi::RUPoint;
8#[allow(unused_imports)]
9use auto::rect_ffi::RURect;
10#[allow(unused_imports)]
11use auto::region_ffi::RURegion;
12#[allow(unused_imports)]
13use std::os::raw::c_void;
14#[repr(C)]
15#[derive(Copy, Clone)]
16pub struct RUPaintEngineFuncs {
17 pub is_active: extern "C" fn(self_c: *const RUBase) -> bool,
18 pub set_active: extern "C" fn(self_c: *const RUBase, new_state: bool),
19 pub begin: extern "C" fn(self_c: *const RUBase, pdev: *const RUBase) -> bool,
20 pub end: extern "C" fn(self_c: *const RUBase) -> bool,
21 pub update_state: extern "C" fn(self_c: *const RUBase, state: *const RUBase),
22 pub draw_rects: extern "C" fn(self_c: *const RUBase, rects: *const RUBase, rect_count: i32),
23 pub draw_rects_2: extern "C" fn(self_c: *const RUBase, rects: *const RUBase, rect_count: i32),
24 pub draw_lines: extern "C" fn(self_c: *const RUBase, lines: *const RUBase, line_count: i32),
25 pub draw_lines_2: extern "C" fn(self_c: *const RUBase, lines: *const RUBase, line_count: i32),
26 pub draw_ellipse: extern "C" fn(self_c: *const RUBase, r: *const RUBase),
27 pub draw_ellipse_2: extern "C" fn(self_c: *const RUBase, r: *const RUBase),
28 pub draw_points: extern "C" fn(self_c: *const RUBase, points: *const RUBase, point_count: i32),
29 pub draw_points_2:
30 extern "C" fn(self_c: *const RUBase, points: *const RUBase, point_count: i32),
31 pub draw_polygon:
32 extern "C" fn(self_c: *const RUBase, points: *const RUBase, point_count: i32, mode: u32),
33 pub draw_polygon_2:
34 extern "C" fn(self_c: *const RUBase, points: *const RUBase, point_count: i32, mode: u32),
35 pub draw_pixmap: extern "C" fn(
36 self_c: *const RUBase,
37 r: *const RUBase,
38 pm: *const RUBase,
39 sr: *const RUBase,
40 ),
41 pub draw_tiled_pixmap: extern "C" fn(
42 self_c: *const RUBase,
43 r: *const RUBase,
44 pixmap: *const RUBase,
45 s: *const RUBase,
46 ),
47 pub draw_image: extern "C" fn(
48 self_c: *const RUBase,
49 r: *const RUBase,
50 pm: *const RUBase,
51 sr: *const RUBase,
52 flags: u32,
53 ),
54 pub set_paint_device: extern "C" fn(self_c: *const RUBase, device: *const RUBase),
55 pub paint_device: extern "C" fn(self_c: *const RUBase) -> RUPaintDevice,
56 pub set_system_clip: extern "C" fn(self_c: *const RUBase, base_clip: *const RUBase),
57 pub system_clip: extern "C" fn(self_c: *const RUBase) -> RURegion,
58 pub set_system_rect: extern "C" fn(self_c: *const RUBase, rect: *const RUBase),
59 pub system_rect: extern "C" fn(self_c: *const RUBase) -> RURect,
60 pub coordinate_offset: extern "C" fn(self_c: *const RUBase) -> RUPoint,
61}
62
63#[repr(C)]
64#[derive(Copy, Clone)]
65pub struct RUPaintEngineAllFuncs {
66 pub paint_engine_funcs: *const RUPaintEngineFuncs,
67}
68
69#[repr(C)]
70#[derive(Copy, Clone)]
71pub struct RUPaintEngine {
72 pub qt_data: *const RUBase,
73 pub host_data: *const RUBase,
74 pub all_funcs: *const RUPaintEngineAllFuncs,
75}