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