miqt/qt/gen_qtextdocument.h

172 lines
8.5 KiB
C++

#ifndef GEN_QTEXTDOCUMENT_H
#define GEN_QTEXTDOCUMENT_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QAbstractTextDocumentLayout;
class QAbstractUndoItem;
class QByteArray;
class QChar;
class QFont;
class QMetaObject;
class QObject;
class QPagedPaintDevice;
class QPainter;
class QRectF;
class QSizeF;
class QTextBlock;
class QTextCursor;
class QTextDocument;
class QTextFormat;
class QTextFrame;
class QTextObject;
class QTextOption;
class QUrl;
class QVariant;
#else
typedef struct QAbstractTextDocumentLayout QAbstractTextDocumentLayout;
typedef struct QAbstractUndoItem QAbstractUndoItem;
typedef struct QByteArray QByteArray;
typedef struct QChar QChar;
typedef struct QFont QFont;
typedef struct QMetaObject QMetaObject;
typedef struct QObject QObject;
typedef struct QPagedPaintDevice QPagedPaintDevice;
typedef struct QPainter QPainter;
typedef struct QRectF QRectF;
typedef struct QSizeF QSizeF;
typedef struct QTextBlock QTextBlock;
typedef struct QTextCursor QTextCursor;
typedef struct QTextDocument QTextDocument;
typedef struct QTextFormat QTextFormat;
typedef struct QTextFrame QTextFrame;
typedef struct QTextObject QTextObject;
typedef struct QTextOption QTextOption;
typedef struct QUrl QUrl;
typedef struct QVariant QVariant;
#endif
void QAbstractUndoItem_Undo(QAbstractUndoItem* self);
void QAbstractUndoItem_Redo(QAbstractUndoItem* self);
void QAbstractUndoItem_Delete(QAbstractUndoItem* self);
QTextDocument* QTextDocument_new();
QTextDocument* QTextDocument_new2(const char* text, size_t text_Strlen);
QTextDocument* QTextDocument_new3(QObject* parent);
QTextDocument* QTextDocument_new4(const char* text, size_t text_Strlen, QObject* parent);
QMetaObject* QTextDocument_MetaObject(QTextDocument* self);
void QTextDocument_Tr(char* s, char** _out, int* _out_Strlen);
void QTextDocument_TrUtf8(char* s, char** _out, int* _out_Strlen);
QTextDocument* QTextDocument_Clone(QTextDocument* self);
bool QTextDocument_IsEmpty(QTextDocument* self);
void QTextDocument_Clear(QTextDocument* self);
void QTextDocument_SetUndoRedoEnabled(QTextDocument* self, bool enable);
bool QTextDocument_IsUndoRedoEnabled(QTextDocument* self);
bool QTextDocument_IsUndoAvailable(QTextDocument* self);
bool QTextDocument_IsRedoAvailable(QTextDocument* self);
int QTextDocument_AvailableUndoSteps(QTextDocument* self);
int QTextDocument_AvailableRedoSteps(QTextDocument* self);
int QTextDocument_Revision(QTextDocument* self);
void QTextDocument_SetDocumentLayout(QTextDocument* self, QAbstractTextDocumentLayout* layout);
QAbstractTextDocumentLayout* QTextDocument_DocumentLayout(QTextDocument* self);
void QTextDocument_ToHtml(QTextDocument* self, char** _out, int* _out_Strlen);
void QTextDocument_SetHtml(QTextDocument* self, const char* html, size_t html_Strlen);
void QTextDocument_ToRawText(QTextDocument* self, char** _out, int* _out_Strlen);
void QTextDocument_ToPlainText(QTextDocument* self, char** _out, int* _out_Strlen);
void QTextDocument_SetPlainText(QTextDocument* self, const char* text, size_t text_Strlen);
QChar* QTextDocument_CharacterAt(QTextDocument* self, int pos);
QTextFrame* QTextDocument_FrameAt(QTextDocument* self, int pos);
QTextFrame* QTextDocument_RootFrame(QTextDocument* self);
QTextObject* QTextDocument_Object(QTextDocument* self, int objectIndex);
QTextObject* QTextDocument_ObjectForFormat(QTextDocument* self, QTextFormat* param1);
QTextBlock* QTextDocument_FindBlock(QTextDocument* self, int pos);
QTextBlock* QTextDocument_FindBlockByNumber(QTextDocument* self, int blockNumber);
QTextBlock* QTextDocument_FindBlockByLineNumber(QTextDocument* self, int blockNumber);
QTextBlock* QTextDocument_Begin(QTextDocument* self);
QTextBlock* QTextDocument_End(QTextDocument* self);
QTextBlock* QTextDocument_FirstBlock(QTextDocument* self);
QTextBlock* QTextDocument_LastBlock(QTextDocument* self);
void QTextDocument_SetPageSize(QTextDocument* self, QSizeF* size);
QSizeF* QTextDocument_PageSize(QTextDocument* self);
void QTextDocument_SetDefaultFont(QTextDocument* self, QFont* font);
QFont* QTextDocument_DefaultFont(QTextDocument* self);
int QTextDocument_PageCount(QTextDocument* self);
bool QTextDocument_IsModified(QTextDocument* self);
void QTextDocument_Print(QTextDocument* self, QPagedPaintDevice* printer);
QVariant* QTextDocument_Resource(QTextDocument* self, int typeVal, QUrl* name);
void QTextDocument_AddResource(QTextDocument* self, int typeVal, QUrl* name, QVariant* resource);
void QTextDocument_AllFormats(QTextDocument* self, QTextFormat*** _out, size_t* _out_len);
void QTextDocument_MarkContentsDirty(QTextDocument* self, int from, int length);
void QTextDocument_SetUseDesignMetrics(QTextDocument* self, bool b);
bool QTextDocument_UseDesignMetrics(QTextDocument* self);
void QTextDocument_DrawContents(QTextDocument* self, QPainter* painter);
void QTextDocument_SetTextWidth(QTextDocument* self, double width);
double QTextDocument_TextWidth(QTextDocument* self);
double QTextDocument_IdealWidth(QTextDocument* self);
double QTextDocument_IndentWidth(QTextDocument* self);
void QTextDocument_SetIndentWidth(QTextDocument* self, double width);
double QTextDocument_DocumentMargin(QTextDocument* self);
void QTextDocument_SetDocumentMargin(QTextDocument* self, double margin);
void QTextDocument_AdjustSize(QTextDocument* self);
QSizeF* QTextDocument_Size(QTextDocument* self);
int QTextDocument_BlockCount(QTextDocument* self);
int QTextDocument_LineCount(QTextDocument* self);
int QTextDocument_CharacterCount(QTextDocument* self);
void QTextDocument_SetDefaultStyleSheet(QTextDocument* self, const char* sheet, size_t sheet_Strlen);
void QTextDocument_DefaultStyleSheet(QTextDocument* self, char** _out, int* _out_Strlen);
void QTextDocument_Undo(QTextDocument* self, QTextCursor* cursor);
void QTextDocument_Redo(QTextDocument* self, QTextCursor* cursor);
int QTextDocument_MaximumBlockCount(QTextDocument* self);
void QTextDocument_SetMaximumBlockCount(QTextDocument* self, int maximum);
QTextOption* QTextDocument_DefaultTextOption(QTextDocument* self);
void QTextDocument_SetDefaultTextOption(QTextDocument* self, QTextOption* option);
QUrl* QTextDocument_BaseUrl(QTextDocument* self);
void QTextDocument_SetBaseUrl(QTextDocument* self, QUrl* url);
void QTextDocument_ContentsChange(QTextDocument* self, int from, int charsRemoved, int charsAdded);
void QTextDocument_connect_ContentsChange(QTextDocument* self, void* slot);
void QTextDocument_ContentsChanged(QTextDocument* self);
void QTextDocument_connect_ContentsChanged(QTextDocument* self, void* slot);
void QTextDocument_UndoAvailable(QTextDocument* self, bool param1);
void QTextDocument_connect_UndoAvailable(QTextDocument* self, void* slot);
void QTextDocument_RedoAvailable(QTextDocument* self, bool param1);
void QTextDocument_connect_RedoAvailable(QTextDocument* self, void* slot);
void QTextDocument_UndoCommandAdded(QTextDocument* self);
void QTextDocument_connect_UndoCommandAdded(QTextDocument* self, void* slot);
void QTextDocument_ModificationChanged(QTextDocument* self, bool m);
void QTextDocument_connect_ModificationChanged(QTextDocument* self, void* slot);
void QTextDocument_CursorPositionChanged(QTextDocument* self, QTextCursor* cursor);
void QTextDocument_connect_CursorPositionChanged(QTextDocument* self, void* slot);
void QTextDocument_BlockCountChanged(QTextDocument* self, int newBlockCount);
void QTextDocument_connect_BlockCountChanged(QTextDocument* self, void* slot);
void QTextDocument_BaseUrlChanged(QTextDocument* self, QUrl* url);
void QTextDocument_connect_BaseUrlChanged(QTextDocument* self, void* slot);
void QTextDocument_DocumentLayoutChanged(QTextDocument* self);
void QTextDocument_connect_DocumentLayoutChanged(QTextDocument* self, void* slot);
void QTextDocument_Undo2(QTextDocument* self);
void QTextDocument_Redo2(QTextDocument* self);
void QTextDocument_SetModified(QTextDocument* self);
void QTextDocument_Tr2(char* s, char* c, char** _out, int* _out_Strlen);
void QTextDocument_Tr3(char* s, char* c, int n, char** _out, int* _out_Strlen);
void QTextDocument_TrUtf82(char* s, char* c, char** _out, int* _out_Strlen);
void QTextDocument_TrUtf83(char* s, char* c, int n, char** _out, int* _out_Strlen);
QTextDocument* QTextDocument_Clone1(QTextDocument* self, QObject* parent);
void QTextDocument_ToHtml1(QTextDocument* self, QByteArray* encoding, char** _out, int* _out_Strlen);
void QTextDocument_DrawContents2(QTextDocument* self, QPainter* painter, QRectF* rect);
void QTextDocument_SetModified1(QTextDocument* self, bool m);
void QTextDocument_Delete(QTextDocument* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif