##// 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_QFontMetrics.h
49 lines | 2.6 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QFONTMETRICS_H
#define PYTHONQTWRAPPER_QFONTMETRICS_H
#include <qfontmetrics.h>
#include <QObject>
#include <QVariant>
#include <qfont.h>
#include <qpaintdevice.h>
#include <qrect.h>
#include <qsize.h>
class PythonQtWrapper_QFontMetrics : public QObject
{ Q_OBJECT
public:
public slots:
QFontMetrics* new_QFontMetrics(const QFont& arg__1);
QFontMetrics* new_QFontMetrics(const QFont& arg__1, QPaintDevice* pd);
void delete_QFontMetrics(QFontMetrics* obj) { delete obj; }
int ascent(QFontMetrics* theWrappedObject) const;
int averageCharWidth(QFontMetrics* theWrappedObject) const;
QRect boundingRect(QFontMetrics* theWrappedObject, QChar arg__1) const;
QRect boundingRect(QFontMetrics* theWrappedObject, const QRect& r, int flags, const QString& text, int tabstops = 0, int* tabarray = 0) const;
QRect boundingRect(QFontMetrics* theWrappedObject, const QString& text) const;
QRect boundingRect(QFontMetrics* theWrappedObject, int x, int y, int w, int h, int flags, const QString& text, int tabstops = 0, int* tabarray = 0) const;
int charWidth(QFontMetrics* theWrappedObject, const QString& str, int pos) const;
int descent(QFontMetrics* theWrappedObject) const;
QString elidedText(QFontMetrics* theWrappedObject, const QString& text, Qt::TextElideMode mode, int width, int flags = 0) const;
int height(QFontMetrics* theWrappedObject) const;
bool inFont(QFontMetrics* theWrappedObject, QChar arg__1) const;
int leading(QFontMetrics* theWrappedObject) const;
int leftBearing(QFontMetrics* theWrappedObject, QChar arg__1) const;
int lineSpacing(QFontMetrics* theWrappedObject) const;
int lineWidth(QFontMetrics* theWrappedObject) const;
int maxWidth(QFontMetrics* theWrappedObject) const;
int minLeftBearing(QFontMetrics* theWrappedObject) const;
int minRightBearing(QFontMetrics* theWrappedObject) const;
int overlinePos(QFontMetrics* theWrappedObject) const;
int rightBearing(QFontMetrics* theWrappedObject, QChar arg__1) const;
QSize size(QFontMetrics* theWrappedObject, int flags, const QString& str, int tabstops = 0, int* tabarray = 0) const;
int strikeOutPos(QFontMetrics* theWrappedObject) const;
QRect tightBoundingRect(QFontMetrics* theWrappedObject, const QString& text) const;
int underlinePos(QFontMetrics* theWrappedObject) const;
int width(QFontMetrics* theWrappedObject, QChar arg__1) const;
int width(QFontMetrics* theWrappedObject, const QString& arg__1, int len = -1) const;
int xHeight(QFontMetrics* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QFONTMETRICS_H