PythonQtWrapper_QTextInlineObject.h
38 lines
| 1.5 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTEXTINLINEOBJECT_H | ||
#define PYTHONQTWRAPPER_QTEXTINLINEOBJECT_H | ||||
#include <qtextlayout.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qrect.h> | ||||
#include <qtextformat.h> | ||||
class PythonQtWrapper_QTextInlineObject : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QTextInlineObject* new_QTextInlineObject(); | ||||
florianlink
|
r24 | QTextInlineObject* new_QTextInlineObject(const QTextInlineObject& other) { | ||
QTextInlineObject* a = new QTextInlineObject(); | ||||
*((QTextInlineObject*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QTextInlineObject(QTextInlineObject* obj) { delete obj; } | ||
florianlink
|
r73 | qreal descent(QTextInlineObject* theWrappedObject) const; | ||
florianlink
|
r28 | bool isValid(QTextInlineObject* theWrappedObject) const; | ||
Qt::LayoutDirection textDirection(QTextInlineObject* theWrappedObject) const; | ||||
florianlink
|
r73 | void setWidth(QTextInlineObject* theWrappedObject, qreal w); | ||
florianlink
|
r28 | int formatIndex(QTextInlineObject* theWrappedObject) const; | ||
florianlink
|
r73 | QRectF rect(QTextInlineObject* theWrappedObject) const; | ||
void setAscent(QTextInlineObject* theWrappedObject, qreal a); | ||||
florianlink
|
r24 | QTextFormat format(QTextInlineObject* theWrappedObject) const; | ||
florianlink
|
r73 | qreal width(QTextInlineObject* theWrappedObject) const; | ||
florianlink
|
r24 | qreal height(QTextInlineObject* theWrappedObject) const; | ||
florianlink
|
r73 | qreal ascent(QTextInlineObject* theWrappedObject) const; | ||
void setDescent(QTextInlineObject* theWrappedObject, qreal d); | ||||
florianlink
|
r13 | int textPosition(QTextInlineObject* theWrappedObject) const; | ||
}; | ||||
#endif // PYTHONQTWRAPPER_QTEXTINLINEOBJECT_H | ||||