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
use rute_ffi_base::*;
#[allow(unused_imports)]
use std::os::raw::c_void;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUPointFuncs {
pub destroy: extern "C" fn(self_c: *const RUBase),
pub is_null: extern "C" fn(self_c: *const RUBase) -> bool,
pub x: extern "C" fn(self_c: *const RUBase) -> i32,
pub y: extern "C" fn(self_c: *const RUBase) -> i32,
pub set_x: extern "C" fn(self_c: *const RUBase, x: i32),
pub set_y: extern "C" fn(self_c: *const RUBase, y: i32),
pub manhattan_length: extern "C" fn(self_c: *const RUBase) -> i32,
pub rx: extern "C" fn(self_c: *const RUBase) -> i32,
pub ry: extern "C" fn(self_c: *const RUBase) -> i32,
pub dot_product:
extern "C" fn(self_c: *const RUBase, p1: *const RUBase, p2: *const RUBase) -> i32,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUPointAllFuncs {
pub point_funcs: *const RUPointFuncs,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RUPoint {
pub qt_data: *const RUBase,
pub host_data: *const RUBase,
pub all_funcs: *const RUPointAllFuncs,
}