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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// This file is auto-generated by rute_gen. DO NOT EDIT.
use rute_ffi_base::*;

#[allow(unused_imports)]
use auto::point_ffi::RUPoint;
#[allow(unused_imports)]
use auto::size_ffi::RUSize;
#[allow(unused_imports)]
use std::os::raw::c_void;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct RURectFuncs {
    pub destroy: extern "C" fn(self_c: *const RUBase),
    pub is_null: extern "C" fn(self_c: *const RUBase) -> bool,
    pub is_empty: extern "C" fn(self_c: *const RUBase) -> bool,
    pub is_valid: extern "C" fn(self_c: *const RUBase) -> bool,
    pub left: extern "C" fn(self_c: *const RUBase) -> i32,
    pub top: extern "C" fn(self_c: *const RUBase) -> i32,
    pub right: extern "C" fn(self_c: *const RUBase) -> i32,
    pub bottom: extern "C" fn(self_c: *const RUBase) -> i32,
    pub normalized: extern "C" fn(self_c: *const RUBase) -> RURect,
    pub x: extern "C" fn(self_c: *const RUBase) -> i32,
    pub y: extern "C" fn(self_c: *const RUBase) -> i32,
    pub set_left: extern "C" fn(self_c: *const RUBase, pos: i32),
    pub set_top: extern "C" fn(self_c: *const RUBase, pos: i32),
    pub set_right: extern "C" fn(self_c: *const RUBase, pos: i32),
    pub set_bottom: extern "C" fn(self_c: *const RUBase, pos: 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 set_top_left: extern "C" fn(self_c: *const RUBase, p: *const RUBase),
    pub set_bottom_right: extern "C" fn(self_c: *const RUBase, p: *const RUBase),
    pub set_top_right: extern "C" fn(self_c: *const RUBase, p: *const RUBase),
    pub set_bottom_left: extern "C" fn(self_c: *const RUBase, p: *const RUBase),
    pub top_left: extern "C" fn(self_c: *const RUBase) -> RUPoint,
    pub bottom_right: extern "C" fn(self_c: *const RUBase) -> RUPoint,
    pub top_right: extern "C" fn(self_c: *const RUBase) -> RUPoint,
    pub bottom_left: extern "C" fn(self_c: *const RUBase) -> RUPoint,
    pub center: extern "C" fn(self_c: *const RUBase) -> RUPoint,
    pub move_left: extern "C" fn(self_c: *const RUBase, pos: i32),
    pub move_top: extern "C" fn(self_c: *const RUBase, pos: i32),
    pub move_right: extern "C" fn(self_c: *const RUBase, pos: i32),
    pub move_bottom: extern "C" fn(self_c: *const RUBase, pos: i32),
    pub move_top_left: extern "C" fn(self_c: *const RUBase, p: *const RUBase),
    pub move_bottom_right: extern "C" fn(self_c: *const RUBase, p: *const RUBase),
    pub move_top_right: extern "C" fn(self_c: *const RUBase, p: *const RUBase),
    pub move_bottom_left: extern "C" fn(self_c: *const RUBase, p: *const RUBase),
    pub move_center: extern "C" fn(self_c: *const RUBase, p: *const RUBase),
    pub move_to: extern "C" fn(self_c: *const RUBase, x: i32, t: i32),
    pub move_to_2: extern "C" fn(self_c: *const RUBase, p: *const RUBase),
    pub set_rect: extern "C" fn(self_c: *const RUBase, x: i32, y: i32, w: i32, h: i32),
    pub set_coords: extern "C" fn(self_c: *const RUBase, x1: i32, y1: i32, x2: i32, y2: i32),
    pub adjust: extern "C" fn(self_c: *const RUBase, x1: i32, y1: i32, x2: i32, y2: i32),
    pub adjusted:
        extern "C" fn(self_c: *const RUBase, x1: i32, y1: i32, x2: i32, y2: i32) -> RURect,
    pub size: extern "C" fn(self_c: *const RUBase) -> RUSize,
    pub width: extern "C" fn(self_c: *const RUBase) -> i32,
    pub height: extern "C" fn(self_c: *const RUBase) -> i32,
    pub set_width: extern "C" fn(self_c: *const RUBase, w: i32),
    pub set_height: extern "C" fn(self_c: *const RUBase, h: i32),
    pub set_size: extern "C" fn(self_c: *const RUBase, s: *const RUBase),
    pub contains: extern "C" fn(self_c: *const RUBase, r: *const RUBase, proper: bool) -> bool,
    pub contains_2: extern "C" fn(self_c: *const RUBase, p: *const RUBase, proper: bool) -> bool,
    pub contains_3: extern "C" fn(self_c: *const RUBase, x: i32, y: i32) -> bool,
    pub contains_4: extern "C" fn(self_c: *const RUBase, x: i32, y: i32, proper: bool) -> bool,
    pub united: extern "C" fn(self_c: *const RUBase, other: *const RUBase) -> RURect,
    pub intersected: extern "C" fn(self_c: *const RUBase, other: *const RUBase) -> RURect,
    pub intersects: extern "C" fn(self_c: *const RUBase, r: *const RUBase) -> bool,
    pub margins_added: extern "C" fn(self_c: *const RUBase, margins: *const RUBase) -> RURect,
    pub margins_removed: extern "C" fn(self_c: *const RUBase, margins: *const RUBase) -> RURect,
}

#[repr(C)]
#[derive(Copy, Clone)]
pub struct RURectAllFuncs {
    pub rect_funcs: *const RURectFuncs,
}

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