##// 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.h
47 lines | 2.1 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTEXTLINE_H
#define PYTHONQTWRAPPER_QTEXTLINE_H
#include <qtextlayout.h>
#include <QObject>
#include <QTextLayout>
#include <QVariant>
#include <qpainter.h>
#include <qpoint.h>
#include <qrect.h>
class PythonQtWrapper_QTextLine : public QObject
{ Q_OBJECT
public:
Q_ENUMS(Edge CursorPosition )
enum Edge{
Leading = QTextLine::Leading, Trailing = QTextLine::Trailing};
enum CursorPosition{
CursorBetweenCharacters = QTextLine::CursorBetweenCharacters, CursorOnCharacter = QTextLine::CursorOnCharacter};
public slots:
QTextLine* new_QTextLine();
void delete_QTextLine(QTextLine* obj) { delete obj; }
qreal ascent(QTextLine* theWrappedObject) const;
qreal cursorToX(QTextLine* theWrappedObject, int cursorPos, QTextLine::Edge edge = QTextLine::Leading) const;
qreal descent(QTextLine* theWrappedObject) const;
void draw(QTextLine* theWrappedObject, QPainter* p, const QPointF& point, const QTextLayout::FormatRange* selection = 0) const;
qreal height(QTextLine* theWrappedObject) const;
bool isValid(QTextLine* theWrappedObject) const;
int lineNumber(QTextLine* theWrappedObject) const;
QRectF naturalTextRect(QTextLine* theWrappedObject) const;
qreal naturalTextWidth(QTextLine* theWrappedObject) const;
QPointF position(QTextLine* theWrappedObject) const;
QRectF rect(QTextLine* theWrappedObject) const;
void setLineWidth(QTextLine* theWrappedObject, qreal width);
void setNumColumns(QTextLine* theWrappedObject, int columns);
void setNumColumns(QTextLine* theWrappedObject, int columns, qreal alignmentWidth);
void setPosition(QTextLine* theWrappedObject, const QPointF& pos);
int textLength(QTextLine* theWrappedObject) const;
int textStart(QTextLine* theWrappedObject) const;
qreal width(QTextLine* theWrappedObject) const;
qreal x(QTextLine* theWrappedObject) const;
int xToCursor(QTextLine* theWrappedObject, qreal x, QTextLine::CursorPosition arg__2 = QTextLine::CursorBetweenCharacters) const;
qreal y(QTextLine* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QTEXTLINE_H