##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

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