~ubuntu-branches/ubuntu/maverick/pygame/maverick

« back to all changes in this revision

Viewing changes to src/rect.doc

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-14 17:02:11 UTC
  • mfrom: (1.3.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100114170211-21eop2ja7mr9vdcr
Tags: 1.9.1release-0ubuntu1
* New upstream version (lp: #433304)
* debian/control:
  - build-depends on libportmidi-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
edge of pixels. If one Rect's bottom border is another Rect's top border
55
55
(i.e., rect1.bottom=rect2.top), the two meet exactly on the screen
56
56
but do not overlap, and rect1.colliderect(rect2) returns false.
 
57
 
 
58
Though Rect can be subclassed, methods that return new rectangles are not
 
59
subclass aware. That is, move or copy return a new pygame.Rect instance,
 
60
not an instance of the subclass. This may change. To make subclass awareness
 
61
work though, subclasses may have to maintain the same constructor signature
 
62
as Rect.
57
63
<SECTION>
58
64
 
59
65
 
 
66
copy
 
67
copy the rectangle
 
68
Rect.copy(): return Rect
 
69
 
 
70
Returns a new rectangle having the same position and size as the orginal.
 
71
<END>
 
72
 
 
73
 
60
74
move
61
75
moves the rectangle
62
76
Rect.move(x, y): return Rect