Add mixin/Gdk2_Rectangle.d: void union_(Rectangle* src2)
commitef1bed5d9d4c01f6307370498a4b7a4f3726fb05
authorArtur Skawina <art.08.09@gmail.com>
Tue, 24 Jan 2012 23:16:44 +0000 (25 00:16 +0100)
committerArtur Skawina <art.08.09@gmail.com>
Tue, 24 Jan 2012 23:16:44 +0000 (25 00:16 +0100)
tree3fe6177147aea499cac9b7bed1fd9bcfd9816eeb
parente6f85af894c9fc46d2fad43e08ed26f2ddd88462
Add mixin/Gdk2_Rectangle.d: void union_(Rectangle* src2)

Lets you do "r1.union_(r2);" to set <r1> to the union of the two
rectangles.

Note "r1.intersect(r2);" does not modify <r1>, it only returns a
boolean value; the two-argument version needs to be used to also
store the intersecting area. intersect(), unlike union(), can be
used in two different ways, and it makes more sense for the just-
checking version to not require the extra null arg.

r1.union(r2) however is unambiguous.
mixin/Gdk2_Rectangle.d [new file with mode: 0644]