PythonQtWrapper_QTextLine.cpp
120 lines
| 3.1 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QTextLine.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QTextLayout> | ||
#include <QVariant> | ||||
#include <qpainter.h> | ||||
#include <qpoint.h> | ||||
#include <qrect.h> | ||||
QTextLine* PythonQtWrapper_QTextLine::new_QTextLine() | ||||
{ | ||||
return new QTextLine(); } | ||||
|
r28 | void PythonQtWrapper_QTextLine::draw(QTextLine* theWrappedObject, QPainter* p, const QPointF& point, const QTextLayout::FormatRange* selection) const | ||
|
r13 | { | ||
|
r28 | theWrappedObject->draw(p, point, selection); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QTextLine::setNumColumns(QTextLine* theWrappedObject, int columns, qreal alignmentWidth) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setNumColumns(columns, alignmentWidth); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QTextLine::setNumColumns(QTextLine* theWrappedObject, int columns) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setNumColumns(columns); | ||
|
r13 | } | ||
|
r28 | qreal PythonQtWrapper_QTextLine::cursorToX(QTextLine* theWrappedObject, int cursorPos, QTextLine::Edge edge) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->cursorToX(cursorPos, edge); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QTextLine::setPosition(QTextLine* theWrappedObject, const QPointF& pos) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setPosition(pos); | ||
|
r13 | } | ||
|
r28 | int PythonQtWrapper_QTextLine::lineNumber(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->lineNumber(); | ||
|
r13 | } | ||
|
r28 | qreal PythonQtWrapper_QTextLine::naturalTextWidth(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->naturalTextWidth(); | ||
|
r13 | } | ||
|
r28 | qreal PythonQtWrapper_QTextLine::ascent(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->ascent(); | ||
|
r13 | } | ||
|
r28 | qreal PythonQtWrapper_QTextLine::height(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->height(); | ||
|
r13 | } | ||
|
r28 | int PythonQtWrapper_QTextLine::textLength(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->textLength(); | ||
|
r13 | } | ||
|
r28 | qreal PythonQtWrapper_QTextLine::y(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->y(); | ||
|
r13 | } | ||
|
r28 | qreal PythonQtWrapper_QTextLine::x(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->x(); | ||
|
r13 | } | ||
|
r28 | qreal PythonQtWrapper_QTextLine::descent(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->descent(); | ||
|
r13 | } | ||
|
r28 | QRectF PythonQtWrapper_QTextLine::rect(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->rect(); | ||
|
r13 | } | ||
|
r28 | QRectF PythonQtWrapper_QTextLine::naturalTextRect(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->naturalTextRect(); | ||
|
r13 | } | ||
|
r28 | qreal PythonQtWrapper_QTextLine::width(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->width(); | ||
|
r13 | } | ||
|
r28 | void PythonQtWrapper_QTextLine::setLineWidth(QTextLine* theWrappedObject, qreal width) | ||
|
r13 | { | ||
|
r28 | theWrappedObject->setLineWidth(width); | ||
|
r13 | } | ||
|
r28 | QPointF PythonQtWrapper_QTextLine::position(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->position(); | ||
|
r13 | } | ||
|
r28 | int PythonQtWrapper_QTextLine::textStart(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->textStart(); | ||
|
r13 | } | ||
|
r28 | bool PythonQtWrapper_QTextLine::isValid(QTextLine* theWrappedObject) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->isValid(); | ||
|
r13 | } | ||
|
r28 | int PythonQtWrapper_QTextLine::xToCursor(QTextLine* theWrappedObject, qreal x, QTextLine::CursorPosition arg__2) const | ||
|
r13 | { | ||
|
r28 | return theWrappedObject->xToCursor(x, arg__2); | ||
|
r13 | } | ||