2024-11-17 06:21:37 +00:00
# pragma once
# ifndef MIQT_QT_GEN_QRAWFONT_H
# define MIQT_QT_GEN_QRAWFONT_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 QChar ;
2024-08-29 07:01:51 +00:00
class QFont ;
class QImage ;
2024-08-25 04:08:24 +00:00
class QPainterPath ;
class QPointF ;
class QRawFont ;
class QRectF ;
2024-08-29 07:01:51 +00:00
class QTransform ;
2024-08-25 04:08:24 +00:00
# else
typedef struct QChar QChar ;
2024-08-29 07:01:51 +00:00
typedef struct QFont QFont ;
typedef struct QImage QImage ;
2024-08-25 04:08:24 +00:00
typedef struct QPainterPath QPainterPath ;
typedef struct QPointF QPointF ;
typedef struct QRawFont QRawFont ;
typedef struct QRectF QRectF ;
2024-08-29 07:01:51 +00:00
typedef struct QTransform QTransform ;
2024-08-25 04:08:24 +00:00
# endif
2024-11-19 06:29:06 +00:00
void QRawFont_new ( QRawFont * * outptr_QRawFont ) ;
void QRawFont_new2 ( struct miqt_string fileName , double pixelSize , QRawFont * * outptr_QRawFont ) ;
void QRawFont_new3 ( struct miqt_string fontData , double pixelSize , QRawFont * * outptr_QRawFont ) ;
void QRawFont_new4 ( QRawFont * other , QRawFont * * outptr_QRawFont ) ;
void QRawFont_new5 ( struct miqt_string fileName , double pixelSize , int hintingPreference , QRawFont * * outptr_QRawFont ) ;
void QRawFont_new6 ( struct miqt_string fontData , double pixelSize , int hintingPreference , QRawFont * * outptr_QRawFont ) ;
2024-08-25 04:08:24 +00:00
void QRawFont_OperatorAssign ( QRawFont * self , QRawFont * other ) ;
void QRawFont_Swap ( QRawFont * self , QRawFont * other ) ;
2024-09-11 05:41:09 +00:00
bool QRawFont_IsValid ( const QRawFont * self ) ;
bool QRawFont_OperatorEqual ( const QRawFont * self , QRawFont * other ) ;
bool QRawFont_OperatorNotEqual ( const QRawFont * self , QRawFont * other ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string QRawFont_FamilyName ( const QRawFont * self ) ;
struct miqt_string QRawFont_StyleName ( const QRawFont * self ) ;
2024-09-18 00:12:02 +00:00
int QRawFont_Style ( const QRawFont * self ) ;
2024-09-11 05:41:09 +00:00
int QRawFont_Weight ( const QRawFont * self ) ;
2024-11-17 06:21:37 +00:00
struct miqt_array /* of unsigned int */ QRawFont_GlyphIndexesForString ( const QRawFont * self , struct miqt_string text ) ;
struct miqt_array /* of QPointF* */ QRawFont_AdvancesForGlyphIndexes ( const QRawFont * self , struct miqt_array /* of unsigned int */ glyphIndexes ) ;
struct miqt_array /* of QPointF* */ QRawFont_AdvancesForGlyphIndexes2 ( const QRawFont * self , struct miqt_array /* of unsigned int */ glyphIndexes , int layoutFlags ) ;
2024-09-11 05:41:09 +00:00
bool QRawFont_GlyphIndexesForChars ( const QRawFont * self , QChar * chars , int numChars , unsigned int * glyphIndexes , int * numGlyphs ) ;
bool QRawFont_AdvancesForGlyphIndexes3 ( const QRawFont * self , const unsigned int * glyphIndexes , QPointF * advances , int numGlyphs ) ;
bool QRawFont_AdvancesForGlyphIndexes4 ( const QRawFont * self , const unsigned int * glyphIndexes , QPointF * advances , int numGlyphs , int layoutFlags ) ;
QImage * QRawFont_AlphaMapForGlyph ( const QRawFont * self , unsigned int glyphIndex ) ;
QPainterPath * QRawFont_PathForGlyph ( const QRawFont * self , unsigned int glyphIndex ) ;
QRectF * QRawFont_BoundingRect ( const QRawFont * self , unsigned int glyphIndex ) ;
2024-08-25 04:08:24 +00:00
void QRawFont_SetPixelSize ( QRawFont * self , double pixelSize ) ;
2024-09-11 05:41:09 +00:00
double QRawFont_PixelSize ( const QRawFont * self ) ;
2024-09-18 00:12:02 +00:00
int QRawFont_HintingPreference ( const QRawFont * self ) ;
2024-09-11 05:41:09 +00:00
double QRawFont_Ascent ( const QRawFont * self ) ;
double QRawFont_CapHeight ( const QRawFont * self ) ;
double QRawFont_Descent ( const QRawFont * self ) ;
double QRawFont_Leading ( const QRawFont * self ) ;
double QRawFont_XHeight ( const QRawFont * self ) ;
double QRawFont_AverageCharWidth ( const QRawFont * self ) ;
double QRawFont_MaxCharWidth ( const QRawFont * self ) ;
double QRawFont_LineThickness ( const QRawFont * self ) ;
double QRawFont_UnderlinePosition ( const QRawFont * self ) ;
double QRawFont_UnitsPerEm ( const QRawFont * self ) ;
2024-10-18 23:53:33 +00:00
void QRawFont_LoadFromFile ( QRawFont * self , struct miqt_string fileName , double pixelSize , int hintingPreference ) ;
void QRawFont_LoadFromData ( QRawFont * self , struct miqt_string fontData , double pixelSize , int hintingPreference ) ;
2024-09-11 05:41:09 +00:00
bool QRawFont_SupportsCharacter ( const QRawFont * self , unsigned int ucs4 ) ;
bool QRawFont_SupportsCharacterWithCharacter ( const QRawFont * self , QChar * character ) ;
2024-11-17 06:21:37 +00:00
struct miqt_array /* of int */ QRawFont_SupportedWritingSystems ( const QRawFont * self ) ;
2024-10-18 23:53:33 +00:00
struct miqt_string QRawFont_FontTable ( const QRawFont * self , const char * tagName ) ;
2024-08-29 07:01:51 +00:00
QRawFont * QRawFont_FromFont ( QFont * font ) ;
2024-09-18 00:12:02 +00:00
QImage * QRawFont_AlphaMapForGlyph2 ( const QRawFont * self , unsigned int glyphIndex , int antialiasingType ) ;
QImage * QRawFont_AlphaMapForGlyph3 ( const QRawFont * self , unsigned int glyphIndex , int antialiasingType , QTransform * transform ) ;
QRawFont * QRawFont_FromFont2 ( QFont * font , int writingSystem ) ;
2024-11-19 06:29:06 +00:00
void QRawFont_Delete ( QRawFont * self , bool isSubclass ) ;
2024-08-25 04:08:24 +00:00
# ifdef __cplusplus
} /* extern C */
# endif
# endif