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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is auto-generated by rute_gen. DO NOT EDIT
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include "../rute_base.h"
#include "../rute_manual.h"
#include <QMargins>
#include "margins_ffi.h"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static bool margins_is_null(struct RUBase* self_c) {
WRMargins* qt_value = (WRMargins*)self_c;
auto ret_value = qt_value->isNull();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static int margins_left(struct RUBase* self_c) {
WRMargins* qt_value = (WRMargins*)self_c;
auto ret_value = qt_value->left();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static int margins_top(struct RUBase* self_c) {
WRMargins* qt_value = (WRMargins*)self_c;
auto ret_value = qt_value->top();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static int margins_right(struct RUBase* self_c) {
WRMargins* qt_value = (WRMargins*)self_c;
auto ret_value = qt_value->right();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static int margins_bottom(struct RUBase* self_c) {
WRMargins* qt_value = (WRMargins*)self_c;
auto ret_value = qt_value->bottom();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static void margins_set_left(struct RUBase* self_c, int left) {
WRMargins* qt_value = (WRMargins*)self_c;
qt_value->setLeft(left);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static void margins_set_top(struct RUBase* self_c, int top) {
WRMargins* qt_value = (WRMargins*)self_c;
qt_value->setTop(top);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static void margins_set_right(struct RUBase* self_c, int right) {
WRMargins* qt_value = (WRMargins*)self_c;
qt_value->setRight(right);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static void margins_set_bottom(struct RUBase* self_c, int bottom) {
WRMargins* qt_value = (WRMargins*)self_c;
qt_value->setBottom(bottom);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static struct RUMargins create_margins(
struct RUBase* priv_data,
RUDeleteCallback delete_callback,
void* private_user_data)
{
auto ctl = generic_create_func_with_delete<struct RUMargins, WRMargins>(priv_data, delete_callback, private_user_data);
ctl.all_funcs = &s_margins_all_funcs;
return ctl;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static void destroy_margins(struct RUBase* priv_data) {
destroy_generic<WRMargins>(priv_data);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
struct RUMarginsFuncs s_margins_funcs = {
destroy_margins,
margins_is_null,
margins_left,
margins_top,
margins_right,
margins_bottom,
margins_set_left,
margins_set_top,
margins_set_right,
margins_set_bottom,
};
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
struct RUMarginsAllFuncs s_margins_all_funcs = {
&s_margins_funcs,
};