Mercurial > projects > qtd
comparison qt/d1/qt/core/QRect.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 | 99e74c8a22f8 |
children | 37eed70de029 |
comparison
equal
deleted
inserted
replaced
247:27497bbe62a1 | 248:7664de4a55e5 |
---|---|
311 { | 311 { |
312 return x1==r.x1 && x2==r.x2 && y1==r.y1 && y2==r.y2; | 312 return x1==r.x1 && x2==r.x2 && y1==r.y1 && y2==r.y2; |
313 } | 313 } |
314 | 314 |
315 public final void writeTo(QDataStream arg__1) { | 315 public final void writeTo(QDataStream arg__1) { |
316 qtd_QRect_writeTo_QDataStream(this, arg__1 is null ? null : arg__1.nativeId); | 316 qtd_QRect_writeTo_QDataStream(this, arg__1 is null ? null : arg__1.__nativeId); |
317 } | 317 } |
318 | 318 |
319 public final void readFrom(QDataStream arg__1) { | 319 public final void readFrom(QDataStream arg__1) { |
320 qtd_QRect_readFrom_QDataStream(this, arg__1 is null ? null : arg__1.nativeId); | 320 qtd_QRect_readFrom_QDataStream(this, arg__1 is null ? null : arg__1.__nativeId); |
321 } | 321 } |
322 | 322 |
323 public final QRect opAnd(in QRect r) { | 323 public final QRect opAnd(in QRect r) { |
324 return qtd_QRect_operator_and_QRect(this, &r); | 324 return qtd_QRect_operator_and_QRect(this, &r); |
325 } | 325 } |
333 } | 333 } |
334 | 334 |
335 public final bool contains(QRect r, bool proper = false) { | 335 public final bool contains(QRect r, bool proper = false) { |
336 return qtd_QRect_contains_QRect_bool(this, &r, proper); | 336 return qtd_QRect_contains_QRect_bool(this, &r, proper); |
337 } | 337 } |
338 | 338 |
339 public final bool intersects(QRect r) { | 339 public final bool intersects(QRect r) { |
340 return qtd_QRect_intersects_QRect(this, &r); | 340 return qtd_QRect_intersects_QRect(this, &r); |
341 } | 341 } |
342 | 342 |
343 public final QRect normalized() { | 343 public final QRect normalized() { |
344 return qtd_QRect_normalized(this); | 344 return qtd_QRect_normalized(this); |
345 } | 345 } |
346 | 346 |
347 private: | 347 private: |
348 version(OSX) | 348 version(OSX) |
349 { | 349 { |
350 int y1; | 350 int y1; |
351 int x1; | 351 int x1; |