rute 0.0.4

UI library implemented on top of Qt
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// 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,
};