PythonQtWrapper_QTextLength.h
35 lines
| 1.2 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QTEXTLENGTH_H | ||
#define PYTHONQTWRAPPER_QTEXTLENGTH_H | ||||
#include <qtextformat.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qtextformat.h> | ||||
class PythonQtWrapper_QTextLength : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(Type ) | ||||
enum Type{ | ||||
VariableLength = QTextLength::VariableLength, FixedLength = QTextLength::FixedLength, PercentageLength = QTextLength::PercentageLength}; | ||||
public slots: | ||||
QTextLength* new_QTextLength(); | ||||
QTextLength* new_QTextLength(QTextLength::Type type, qreal value); | ||||
florianlink
|
r24 | QTextLength* new_QTextLength(const QTextLength& other) { | ||
QTextLength* a = new QTextLength(); | ||||
*((QTextLength*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QTextLength(QTextLength* obj) { delete obj; } | ||
florianlink
|
r73 | void writeTo(QTextLength* theWrappedObject, QDataStream& arg__1); | ||
bool operator_equal(QTextLength* theWrappedObject, const QTextLength& other) const; | ||||
void readFrom(QTextLength* theWrappedObject, QDataStream& arg__1); | ||||
florianlink
|
r28 | qreal rawValue(QTextLength* theWrappedObject) const; | ||
qreal value(QTextLength* theWrappedObject, qreal maximumLength) const; | ||||
florianlink
|
r13 | QTextLength::Type type(QTextLength* theWrappedObject) const; | ||
}; | ||||
#endif // PYTHONQTWRAPPER_QTEXTLENGTH_H | ||||