PythonQtWrapper_QPlainTextDocumentLayout.h
45 lines
| 1.8 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QPLAINTEXTDOCUMENTLAYOUT_H | ||
#define PYTHONQTWRAPPER_QPLAINTEXTDOCUMENTLAYOUT_H | ||||
#include <qplaintextedit.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QAbstractTextDocumentLayout> | ||
#include <QVariant> | ||||
#include <qpainter.h> | ||||
#include <qpoint.h> | ||||
#include <qrect.h> | ||||
#include <qsize.h> | ||||
#include <qtextdocument.h> | ||||
#include <qtextobject.h> | ||||
florianlink
|
r24 | class PythonQtShell_QPlainTextDocumentLayout : public QPlainTextDocumentLayout | ||
{ | ||||
public: | ||||
PythonQtShell_QPlainTextDocumentLayout(QTextDocument* document):QPlainTextDocumentLayout(document),_wrapper(NULL) {}; | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QPlainTextDocumentLayout : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QPlainTextDocumentLayout* new_QPlainTextDocumentLayout(QTextDocument* document); | ||||
void delete_QPlainTextDocumentLayout(QPlainTextDocumentLayout* obj) { delete obj; } | ||||
florianlink
|
r28 | QRectF blockBoundingRect(QPlainTextDocumentLayout* theWrappedObject, const QTextBlock& block) const; | ||
florianlink
|
r13 | int cursorWidth(QPlainTextDocumentLayout* theWrappedObject) const; | ||
void ensureBlockLayout(QPlainTextDocumentLayout* theWrappedObject, const QTextBlock& block) const; | ||||
void requestUpdate(QPlainTextDocumentLayout* theWrappedObject); | ||||
florianlink
|
r24 | void draw(QPlainTextDocumentLayout* theWrappedObject, QPainter* arg__1, const QAbstractTextDocumentLayout::PaintContext& arg__2); | ||
florianlink
|
r28 | int hitTest(QPlainTextDocumentLayout* theWrappedObject, const QPointF& arg__1, Qt::HitTestAccuracy arg__2) const; | ||
florianlink
|
r24 | int pageCount(QPlainTextDocumentLayout* theWrappedObject) const; | ||
florianlink
|
r28 | QSizeF documentSize(QPlainTextDocumentLayout* theWrappedObject) const; | ||
void setCursorWidth(QPlainTextDocumentLayout* theWrappedObject, int width); | ||||
QRectF frameBoundingRect(QPlainTextDocumentLayout* theWrappedObject, QTextFrame* arg__1) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QPLAINTEXTDOCUMENTLAYOUT_H | ||||