mirror of
https://github.com/mappu/miqt.git
synced 2024-12-23 01:18:37 +00:00
112 lines
5.0 KiB
C++
112 lines
5.0 KiB
C++
#ifndef GEN_QFONT_H
|
|
#define GEN_QFONT_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class QFont;
|
|
class QPaintDevice;
|
|
#else
|
|
typedef struct QFont QFont;
|
|
typedef struct QPaintDevice QPaintDevice;
|
|
#endif
|
|
|
|
QFont* QFont_new();
|
|
QFont* QFont_new2(const char* family, size_t family_Strlen);
|
|
QFont* QFont_new3(QFont* font, QPaintDevice* pd);
|
|
QFont* QFont_new4(QFont* font, QPaintDevice* pd);
|
|
QFont* QFont_new5(QFont* font);
|
|
QFont* QFont_new6(const char* family, size_t family_Strlen, int pointSize);
|
|
QFont* QFont_new7(const char* family, size_t family_Strlen, int pointSize, int weight);
|
|
QFont* QFont_new8(const char* family, size_t family_Strlen, int pointSize, int weight, bool italic);
|
|
void QFont_Swap(QFont* self, QFont* other);
|
|
void QFont_Family(QFont* self, char** _out, int* _out_Strlen);
|
|
void QFont_SetFamily(QFont* self, const char* family, size_t family_Strlen);
|
|
void QFont_Families(QFont* self, char*** _out, int** _out_Lengths, size_t* _out_len);
|
|
void QFont_SetFamilies(QFont* self, char** families, uint64_t* families_Lengths, size_t families_len);
|
|
void QFont_StyleName(QFont* self, char** _out, int* _out_Strlen);
|
|
void QFont_SetStyleName(QFont* self, const char* styleName, size_t styleName_Strlen);
|
|
int QFont_PointSize(QFont* self);
|
|
void QFont_SetPointSize(QFont* self, int pointSize);
|
|
double QFont_PointSizeF(QFont* self);
|
|
void QFont_SetPointSizeF(QFont* self, double pointSizeF);
|
|
int QFont_PixelSize(QFont* self);
|
|
void QFont_SetPixelSize(QFont* self, int pixelSize);
|
|
int QFont_Weight(QFont* self);
|
|
void QFont_SetWeight(QFont* self, int weight);
|
|
bool QFont_Bold(QFont* self);
|
|
void QFont_SetBold(QFont* self, bool bold);
|
|
void QFont_SetStyle(QFont* self, uintptr_t style);
|
|
uintptr_t QFont_Style(QFont* self);
|
|
bool QFont_Italic(QFont* self);
|
|
void QFont_SetItalic(QFont* self, bool b);
|
|
bool QFont_Underline(QFont* self);
|
|
void QFont_SetUnderline(QFont* self, bool underline);
|
|
bool QFont_Overline(QFont* self);
|
|
void QFont_SetOverline(QFont* self, bool overline);
|
|
bool QFont_StrikeOut(QFont* self);
|
|
void QFont_SetStrikeOut(QFont* self, bool strikeOut);
|
|
bool QFont_FixedPitch(QFont* self);
|
|
void QFont_SetFixedPitch(QFont* self, bool fixedPitch);
|
|
bool QFont_Kerning(QFont* self);
|
|
void QFont_SetKerning(QFont* self, bool kerning);
|
|
uintptr_t QFont_StyleHint(QFont* self);
|
|
uintptr_t QFont_StyleStrategy(QFont* self);
|
|
void QFont_SetStyleHint(QFont* self, uintptr_t param1);
|
|
void QFont_SetStyleStrategy(QFont* self, uintptr_t s);
|
|
int QFont_Stretch(QFont* self);
|
|
void QFont_SetStretch(QFont* self, int stretch);
|
|
double QFont_LetterSpacing(QFont* self);
|
|
uintptr_t QFont_LetterSpacingType(QFont* self);
|
|
void QFont_SetLetterSpacing(QFont* self, uintptr_t typeVal, double spacing);
|
|
double QFont_WordSpacing(QFont* self);
|
|
void QFont_SetWordSpacing(QFont* self, double spacing);
|
|
void QFont_SetCapitalization(QFont* self, uintptr_t capitalization);
|
|
uintptr_t QFont_Capitalization(QFont* self);
|
|
void QFont_SetHintingPreference(QFont* self, uintptr_t hintingPreference);
|
|
uintptr_t QFont_HintingPreference(QFont* self);
|
|
bool QFont_RawMode(QFont* self);
|
|
void QFont_SetRawMode(QFont* self, bool rawMode);
|
|
bool QFont_ExactMatch(QFont* self);
|
|
void QFont_OperatorAssign(QFont* self, QFont* param1);
|
|
bool QFont_OperatorEqual(QFont* self, QFont* param1);
|
|
bool QFont_OperatorNotEqual(QFont* self, QFont* param1);
|
|
bool QFont_OperatorLesser(QFont* self, QFont* param1);
|
|
bool QFont_IsCopyOf(QFont* self, QFont* param1);
|
|
void QFont_SetRawName(QFont* self, const char* rawName, size_t rawName_Strlen);
|
|
void QFont_RawName(QFont* self, char** _out, int* _out_Strlen);
|
|
void QFont_Key(QFont* self, char** _out, int* _out_Strlen);
|
|
void QFont_ToString(QFont* self, char** _out, int* _out_Strlen);
|
|
bool QFont_FromString(QFont* self, const char* param1, size_t param1_Strlen);
|
|
void QFont_Substitute(const char* param1, size_t param1_Strlen, char** _out, int* _out_Strlen);
|
|
void QFont_Substitutes(const char* param1, size_t param1_Strlen, char*** _out, int** _out_Lengths, size_t* _out_len);
|
|
void QFont_Substitutions(char*** _out, int** _out_Lengths, size_t* _out_len);
|
|
void QFont_InsertSubstitution(const char* param1, size_t param1_Strlen, const char* param2, size_t param2_Strlen);
|
|
void QFont_InsertSubstitutions(const char* param1, size_t param1_Strlen, char** param2, uint64_t* param2_Lengths, size_t param2_len);
|
|
void QFont_RemoveSubstitutions(const char* param1, size_t param1_Strlen);
|
|
void QFont_Initialize();
|
|
void QFont_Cleanup();
|
|
void QFont_CacheStatistics();
|
|
void QFont_DefaultFamily(QFont* self, char** _out, int* _out_Strlen);
|
|
void QFont_LastResortFamily(QFont* self, char** _out, int* _out_Strlen);
|
|
void QFont_LastResortFont(QFont* self, char** _out, int* _out_Strlen);
|
|
QFont* QFont_Resolve(QFont* self, QFont* param1);
|
|
unsigned int QFont_Resolve2(QFont* self);
|
|
void QFont_ResolveWithMask(QFont* self, unsigned int mask);
|
|
void QFont_SetStyleHint2(QFont* self, uintptr_t param1, uintptr_t param2);
|
|
void QFont_Delete(QFont* self);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|