miqt/qt6/gen_qfontdatabase.h

68 lines
3.1 KiB
C
Raw Normal View History

#pragma once
#ifndef MIQT_QT6_GEN_QFONTDATABASE_H
#define MIQT_QT6_GEN_QFONTDATABASE_H
2024-10-20 05:21:03 +00:00
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "../libmiqt/libmiqt.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QFont;
class QFontDatabase;
class QFontInfo;
#else
typedef struct QFont QFont;
typedef struct QFontDatabase QFontDatabase;
typedef struct QFontInfo QFontInfo;
#endif
2024-12-07 04:15:57 +00:00
QFontDatabase* QFontDatabase_new();
struct miqt_array /* of int */ QFontDatabase_StandardSizes();
struct miqt_array /* of int */ QFontDatabase_WritingSystems();
struct miqt_array /* of int */ QFontDatabase_WritingSystemsWithFamily(struct miqt_string family);
struct miqt_array /* of struct miqt_string */ QFontDatabase_Families();
struct miqt_array /* of struct miqt_string */ QFontDatabase_Styles(struct miqt_string family);
struct miqt_array /* of int */ QFontDatabase_PointSizes(struct miqt_string family);
struct miqt_array /* of int */ QFontDatabase_SmoothSizes(struct miqt_string family, struct miqt_string style);
2024-10-20 05:21:03 +00:00
struct miqt_string QFontDatabase_StyleString(QFont* font);
struct miqt_string QFontDatabase_StyleStringWithFontInfo(QFontInfo* fontInfo);
QFont* QFontDatabase_Font(struct miqt_string family, struct miqt_string style, int pointSize);
bool QFontDatabase_IsBitmapScalable(struct miqt_string family);
bool QFontDatabase_IsSmoothlyScalable(struct miqt_string family);
bool QFontDatabase_IsScalable(struct miqt_string family);
bool QFontDatabase_IsFixedPitch(struct miqt_string family);
bool QFontDatabase_Italic(struct miqt_string family, struct miqt_string style);
bool QFontDatabase_Bold(struct miqt_string family, struct miqt_string style);
int QFontDatabase_Weight(struct miqt_string family, struct miqt_string style);
bool QFontDatabase_HasFamily(struct miqt_string family);
bool QFontDatabase_IsPrivateFamily(struct miqt_string family);
struct miqt_string QFontDatabase_WritingSystemName(int writingSystem);
struct miqt_string QFontDatabase_WritingSystemSample(int writingSystem);
int QFontDatabase_AddApplicationFont(struct miqt_string fileName);
int QFontDatabase_AddApplicationFontFromData(struct miqt_string fontData);
struct miqt_array /* of struct miqt_string */ QFontDatabase_ApplicationFontFamilies(int id);
2024-10-20 05:21:03 +00:00
bool QFontDatabase_RemoveApplicationFont(int id);
bool QFontDatabase_RemoveAllApplicationFonts();
QFont* QFontDatabase_SystemFont(int typeVal);
struct miqt_array /* of struct miqt_string */ QFontDatabase_Families1(int writingSystem);
struct miqt_array /* of int */ QFontDatabase_PointSizes2(struct miqt_string family, struct miqt_string style);
2024-10-20 05:21:03 +00:00
bool QFontDatabase_IsBitmapScalable2(struct miqt_string family, struct miqt_string style);
bool QFontDatabase_IsSmoothlyScalable2(struct miqt_string family, struct miqt_string style);
bool QFontDatabase_IsScalable2(struct miqt_string family, struct miqt_string style);
bool QFontDatabase_IsFixedPitch2(struct miqt_string family, struct miqt_string style);
2024-11-19 06:29:06 +00:00
void QFontDatabase_Delete(QFontDatabase* self, bool isSubclass);
2024-10-20 05:21:03 +00:00
#ifdef __cplusplus
} /* extern C */
#endif
#endif