rute 0.0.6

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