Mercurial > projects > qtd
diff qt/d2/qt/core/QRectF.d @ 248:7664de4a55e5
Fixed #23.
QtD_QObjectEntity is not created dynamically for shell classes any more.
Class initialization is now performed by static constructors.
When wrapping QObjects returned from functions, their run-time types are now taken into account.
QObjects are allocated on GC heap, a doubly-linked list is used to prevent them from been collected (arguably a better solution than allocating on C heap and adding GC ranges)
Minor changes (including unnecessary).
author | maxter |
---|---|
date | Thu, 20 Aug 2009 14:47:17 +0000 |
parents | 3dadfee97421 |
children | 37eed70de029 |
line wrap: on
line diff
--- a/qt/d2/qt/core/QRectF.d Fri Jul 31 11:05:22 2009 +0000 +++ b/qt/d2/qt/core/QRectF.d Thu Aug 20 14:47:17 2009 +0000 @@ -17,7 +17,7 @@ rt.w = rt.h = 0.; return rt; } - + public this(qreal aleft, qreal atop, qreal awidth, qreal aheight) { xp = aleft; @@ -67,28 +67,28 @@ qreal left() const { return xp; } - + qreal top() const { return yp; } - + qreal right() const { return xp + w; } - + qreal bottom() const { return yp + h; } - + QPointF topLeft() const { return QPointF(xp, yp); } - + QPointF bottomRight() const { return QPointF(xp+w, yp+h); } - + QPointF topRight() const { return QPointF(xp+w, yp); } - + QPointF bottomLeft() const { return QPointF(xp, yp+h); } - + void setLeft(qreal pos) { qreal diff = pos - xp; xp += diff; w -= diff; } void setRight(qreal pos) { w = pos - xp; } @@ -226,7 +226,7 @@ w = s.width(); h = s.height(); } - + bool contains(qreal ax, qreal ay) const { return contains(QPointF(ax, ay)); @@ -286,11 +286,11 @@ } public final void writeTo(QDataStream arg__1) { - qtd_QRectF_writeTo_QDataStream(&this, arg__1 is null ? null : arg__1.nativeId); + qtd_QRectF_writeTo_QDataStream(&this, arg__1 is null ? null : arg__1.__nativeId); } public final void readFrom(QDataStream arg__1) { - qtd_QRectF_readFrom_QDataStream(&this, arg__1 is null ? null : arg__1.nativeId); + qtd_QRectF_readFrom_QDataStream(&this, arg__1 is null ? null : arg__1.__nativeId); } public final QRectF opOr(ref QRectF r) const {