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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is auto-generated by rute_gen. DO NOT EDIT
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include "../rute_base.h"
#include "../rute_manual.h"
#include <QFontInfo>
#include "font_info_ffi.h"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static void font_info_swap(struct RUBase* self_c, struct RUBase* other) {
QFontInfo* qt_value = (QFontInfo*)self_c;
qt_value->swap(*((QFontInfo*)other));
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static const char* font_info_family(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->family();
return q_string_to_const_char(ret_value);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static const char* font_info_style_name(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->styleName();
return q_string_to_const_char(ret_value);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static int font_info_pixel_size(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->pixelSize();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static int font_info_point_size(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->pointSize();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static float font_info_point_size_f(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->pointSizeF();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static bool font_info_italic(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->italic();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static int font_info_weight(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->weight();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static bool font_info_bold(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->bold();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static bool font_info_underline(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->underline();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static bool font_info_overline(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->overline();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static bool font_info_fixed_pitch(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->fixedPitch();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static uint32_t font_info_style_hint(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->styleHint();
return (uint32_t)ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static bool font_info_raw_mode(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->rawMode();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static bool font_info_exact_match(struct RUBase* self_c) {
QFontInfo* qt_value = (QFontInfo*)self_c;
auto ret_value = qt_value->exactMatch();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
struct RUFontInfoFuncs s_font_info_funcs = {
font_info_swap,
font_info_family,
font_info_style_name,
font_info_pixel_size,
font_info_point_size,
font_info_point_size_f,
font_info_italic,
font_info_weight,
font_info_bold,
font_info_underline,
font_info_overline,
font_info_fixed_pitch,
font_info_style_hint,
font_info_raw_mode,
font_info_exact_match,
};
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
struct RUFontInfoAllFuncs s_font_info_all_funcs = {
&s_font_info_funcs,
};