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
use rute_ffi_base::*;
#[allow(unused_imports)]
use auto::region_ffi::RURegion;
#[allow(unused_imports)]
use auto::size_ffi::RUSize;
#[allow(unused_imports)]
use std::os::raw::c_void;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUBackingStoreFuncs {
pub flush: extern "C" fn(
self_c: *const RUBase,
region: *const RUBase,
window: *const RUBase,
offset: *const RUBase,
),
pub resize: extern "C" fn(self_c: *const RUBase, size: *const RUBase),
pub size: extern "C" fn(self_c: *const RUBase) -> RUSize,
pub scroll: extern "C" fn(self_c: *const RUBase, area: *const RUBase, dx: i32, dy: i32) -> bool,
pub begin_paint: extern "C" fn(self_c: *const RUBase, arg0: *const RUBase),
pub end_paint: extern "C" fn(self_c: *const RUBase),
pub set_static_contents: extern "C" fn(self_c: *const RUBase, region: *const RUBase),
pub static_contents: extern "C" fn(self_c: *const RUBase) -> RURegion,
pub has_static_contents: extern "C" fn(self_c: *const RUBase) -> bool,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUBackingStoreAllFuncs {
pub backing_store_funcs: *const RUBackingStoreFuncs,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUBackingStore {
pub qt_data: *const RUBase,
pub host_data: *const RUBase,
pub all_funcs: *const RUBackingStoreAllFuncs,
}