The Inbox: Graphics-bp.318.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: Graphics-bp.318.mcz

commits-2
Bernhard Pieber uploaded a new version of Graphics to project The Inbox:
http://source.squeak.org/inbox/Graphics-bp.318.mcz

==================== Summary ====================

Name: Graphics-bp.318
Author: bp
Time: 10 January 2016, 11:32:59.384 pm
UUID: 040225f1-fa88-4f50-84dd-165cfc4cf291
Ancestors: Graphics-eem.317

resize to edges methods

=============== Diff against Graphics-eem.317 ===============

Item was added:
+ ----- Method: Rectangle>>bottomHalf (in category 'transforming') -----
+ bottomHalf
+ ^self withTop: self center y!

Item was added:
+ ----- Method: Rectangle>>bottomLeftQuadrant (in category 'transforming') -----
+ bottomLeftQuadrant
+ ^self leftCenter corner: self bottomCenter!

Item was added:
+ ----- Method: Rectangle>>bottomRightQuadrant (in category 'transforming') -----
+ bottomRightQuadrant
+ ^self center corner: self bottomRight!

Item was added:
+ ----- Method: Rectangle>>leftHalf (in category 'transforming') -----
+ leftHalf
+ ^self withRight: self center x!

Item was added:
+ ----- Method: Rectangle>>rightHalf (in category 'truncation and round off') -----
+ rightHalf
+ ^self withLeft: self center x!

Item was added:
+ ----- Method: Rectangle>>topHalf (in category 'transforming') -----
+ topHalf
+ ^self withBottom: self center y!

Item was added:
+ ----- Method: Rectangle>>topLeftQuadrant (in category 'transforming') -----
+ topLeftQuadrant
+ ^self topLeft corner: self center!

Item was added:
+ ----- Method: Rectangle>>topRightQuadrant (in category 'transforming') -----
+ topRightQuadrant
+ ^self topCenter corner: self rightCenter!


Reply | Threaded
Open this post in threaded view
|

Re: The Inbox: Graphics-bp.318.mcz

marcel.taeumel
+1 (independent from the particular application to enable "snap to edges")

Best,
Marcel