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
52
53
54
// This file is auto-generated by rute_gen. DO NOT EDIT.
use rute_ffi_base::*;

#[allow(unused_imports)]
use auto::event_ffi::*;
#[allow(unused_imports)]
use auto::input_event_ffi::*;
#[allow(unused_imports)]
use auto::point_f_ffi::RUPointF;
#[allow(unused_imports)]
use auto::point_ffi::RUPoint;
#[allow(unused_imports)]
use std::os::raw::c_void;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUTabletEventFuncs {
    pub pos: extern "C" fn(self_c: *const RUBase) -> RUPoint,
    pub global_pos: extern "C" fn(self_c: *const RUBase) -> RUPoint,
    pub pos_f: extern "C" fn(self_c: *const RUBase) -> RUPointF,
    pub global_pos_f: extern "C" fn(self_c: *const RUBase) -> RUPointF,
    pub x: extern "C" fn(self_c: *const RUBase) -> i32,
    pub y: extern "C" fn(self_c: *const RUBase) -> i32,
    pub global_x: extern "C" fn(self_c: *const RUBase) -> i32,
    pub global_y: extern "C" fn(self_c: *const RUBase) -> i32,
    pub hi_res_global_x: extern "C" fn(self_c: *const RUBase) -> f32,
    pub hi_res_global_y: extern "C" fn(self_c: *const RUBase) -> f32,
    pub device: extern "C" fn(self_c: *const RUBase) -> i32,
    pub pointer_type: extern "C" fn(self_c: *const RUBase) -> i32,
    pub unique_id: extern "C" fn(self_c: *const RUBase) -> i64,
    pub pressure: extern "C" fn(self_c: *const RUBase) -> f32,
    pub z: extern "C" fn(self_c: *const RUBase) -> i32,
    pub tangential_pressure: extern "C" fn(self_c: *const RUBase) -> f32,
    pub rotation: extern "C" fn(self_c: *const RUBase) -> f32,
    pub x_tilt: extern "C" fn(self_c: *const RUBase) -> i32,
    pub y_tilt: extern "C" fn(self_c: *const RUBase) -> i32,
    pub button: extern "C" fn(self_c: *const RUBase) -> i32,
    pub buttons: extern "C" fn(self_c: *const RUBase) -> i32,
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUTabletEventAllFuncs {
    pub event_funcs: *const RUEventFuncs,
    pub input_event_funcs: *const RUInputEventFuncs,
    pub tablet_event_funcs: *const RUTabletEventFuncs,
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUTabletEvent {
    pub qt_data: *const RUBase,
    pub host_data: *const RUBase,
    pub all_funcs: *const RUTabletEventAllFuncs,
}