2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QFONT_H
|
|
|
|
#define MIQT_QT_GEN_QFONT_H
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QFont;
|
|
|
|
class QPaintDevice;
|
|
|
|
#else
|
|
|
|
typedef struct QFont QFont;
|
|
|
|
typedef struct QPaintDevice QPaintDevice;
|
|
|
|
#endif
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QFont* QFont_new();
|
|
|
|
QFont* QFont_new2(struct miqt_string family);
|
|
|
|
QFont* QFont_new3(QFont* font, QPaintDevice* pd);
|
|
|
|
QFont* QFont_new4(QFont* font, QPaintDevice* pd);
|
|
|
|
QFont* QFont_new5(QFont* font);
|
|
|
|
QFont* QFont_new6(struct miqt_string family, int pointSize);
|
|
|
|
QFont* QFont_new7(struct miqt_string family, int pointSize, int weight);
|
|
|
|
QFont* QFont_new8(struct miqt_string family, int pointSize, int weight, bool italic);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_Swap(QFont* self, QFont* other);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QFont_Family(const QFont* self);
|
|
|
|
void QFont_SetFamily(QFont* self, struct miqt_string family);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of struct miqt_string */ QFont_Families(const QFont* self);
|
|
|
|
void QFont_SetFamilies(QFont* self, struct miqt_array /* of struct miqt_string */ families);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QFont_StyleName(const QFont* self);
|
|
|
|
void QFont_SetStyleName(QFont* self, struct miqt_string styleName);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QFont_PointSize(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetPointSize(QFont* self, int pointSize);
|
2024-09-11 05:41:09 +00:00
|
|
|
double QFont_PointSizeF(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetPointSizeF(QFont* self, double pointSizeF);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QFont_PixelSize(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetPixelSize(QFont* self, int pixelSize);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QFont_Weight(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetWeight(QFont* self, int weight);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QFont_Bold(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetBold(QFont* self, bool bold);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QFont_SetStyle(QFont* self, int style);
|
|
|
|
int QFont_Style(const QFont* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QFont_Italic(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetItalic(QFont* self, bool b);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QFont_Underline(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetUnderline(QFont* self, bool underline);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QFont_Overline(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetOverline(QFont* self, bool overline);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QFont_StrikeOut(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetStrikeOut(QFont* self, bool strikeOut);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QFont_FixedPitch(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetFixedPitch(QFont* self, bool fixedPitch);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QFont_Kerning(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetKerning(QFont* self, bool kerning);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QFont_StyleHint(const QFont* self);
|
|
|
|
int QFont_StyleStrategy(const QFont* self);
|
|
|
|
void QFont_SetStyleHint(QFont* self, int param1);
|
|
|
|
void QFont_SetStyleStrategy(QFont* self, int s);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QFont_Stretch(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetStretch(QFont* self, int stretch);
|
2024-09-11 05:41:09 +00:00
|
|
|
double QFont_LetterSpacing(const QFont* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QFont_LetterSpacingType(const QFont* self);
|
|
|
|
void QFont_SetLetterSpacing(QFont* self, int typeVal, double spacing);
|
2024-09-11 05:41:09 +00:00
|
|
|
double QFont_WordSpacing(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetWordSpacing(QFont* self, double spacing);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QFont_SetCapitalization(QFont* self, int capitalization);
|
|
|
|
int QFont_Capitalization(const QFont* self);
|
|
|
|
void QFont_SetHintingPreference(QFont* self, int hintingPreference);
|
|
|
|
int QFont_HintingPreference(const QFont* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QFont_RawMode(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_SetRawMode(QFont* self, bool rawMode);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QFont_ExactMatch(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_OperatorAssign(QFont* self, QFont* param1);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QFont_OperatorEqual(const QFont* self, QFont* param1);
|
|
|
|
bool QFont_OperatorNotEqual(const QFont* self, QFont* param1);
|
|
|
|
bool QFont_OperatorLesser(const QFont* self, QFont* param1);
|
|
|
|
bool QFont_IsCopyOf(const QFont* self, QFont* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
void QFont_SetRawName(QFont* self, struct miqt_string rawName);
|
|
|
|
struct miqt_string QFont_RawName(const QFont* self);
|
|
|
|
struct miqt_string QFont_Key(const QFont* self);
|
|
|
|
struct miqt_string QFont_ToString(const QFont* self);
|
|
|
|
bool QFont_FromString(QFont* self, struct miqt_string param1);
|
|
|
|
struct miqt_string QFont_Substitute(struct miqt_string param1);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of struct miqt_string */ QFont_Substitutes(struct miqt_string param1);
|
|
|
|
struct miqt_array /* of struct miqt_string */ QFont_Substitutions();
|
2024-10-18 23:53:33 +00:00
|
|
|
void QFont_InsertSubstitution(struct miqt_string param1, struct miqt_string param2);
|
2024-11-17 06:21:37 +00:00
|
|
|
void QFont_InsertSubstitutions(struct miqt_string param1, struct miqt_array /* of struct miqt_string */ param2);
|
2024-10-18 23:53:33 +00:00
|
|
|
void QFont_RemoveSubstitutions(struct miqt_string param1);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_Initialize();
|
|
|
|
void QFont_Cleanup();
|
|
|
|
void QFont_CacheStatistics();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QFont_DefaultFamily(const QFont* self);
|
|
|
|
struct miqt_string QFont_LastResortFamily(const QFont* self);
|
|
|
|
struct miqt_string QFont_LastResortFont(const QFont* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
QFont* QFont_Resolve(const QFont* self, QFont* param1);
|
|
|
|
unsigned int QFont_Resolve2(const QFont* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QFont_ResolveWithMask(QFont* self, unsigned int mask);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QFont_SetStyleHint2(QFont* self, int param1, int param2);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QFont_Delete(QFont* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|