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
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// This file is auto-generated by rute_gen. DO NOT EDIT
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include "../rute_base.h"
#include "../rute_manual.h"
#include <QInputEvent>
#include "input_event_ffi.h"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static int input_event_modifiers(struct RUBase* self_c) {
QInputEvent* qt_value = (QInputEvent*)self_c;
auto ret_value = qt_value->modifiers();
return s_keyboard_modifiers_lookup[(int)ret_value];
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static void input_event_set_modifiers(struct RUBase* self_c, int amodifiers) {
QInputEvent* qt_value = (QInputEvent*)self_c;
qt_value->setModifiers((Qt::KeyboardModifiers)s_keyboard_modifiers_lookup[amodifiers]);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static uint64_t input_event_timestamp(struct RUBase* self_c) {
QInputEvent* qt_value = (QInputEvent*)self_c;
auto ret_value = qt_value->timestamp();
return ret_value;
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
static void input_event_set_timestamp(struct RUBase* self_c, uint64_t atimestamp) {
QInputEvent* qt_value = (QInputEvent*)self_c;
qt_value->setTimestamp(atimestamp);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
struct RUInputEventFuncs s_input_event_funcs = {
input_event_modifiers,
input_event_set_modifiers,
input_event_timestamp,
input_event_set_timestamp,
};
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
struct RUInputEventAllFuncs s_input_event_all_funcs = {
&s_event_funcs,
&s_input_event_funcs,
};