[Pharo-project] To Quadrangle or not Quadrangle?
Class comment reads: I represent a particular kind of Rectangle that has a border and inside color. - 0 users in image, except strange test case in RPackage, and totally unrelated to actual class. Now, lets count how many "bordered" stuff we have: - Morph borderStyle which using BorderStyle - BorderedMorph, which has borderWidth borderColor (and if you combine it with color inherited from Morph, you get exactly what Quadrangle has).. - Canvas protocol , supports #borderXYZ everywhere... it is funny, how much attention this visual property drawn from developers :) (not mentioning an amazing amount of efforts making rounded corners (and of course drawing rounded borders there as well)) -- Best regards, Igor Stasenko.
you mean bounds, inner bounds, inset bounds, outer bounds⦠:) On Dec 22, 2012, at 2:41 AM, Igor Stasenko wrote:
Class comment reads:
I represent a particular kind of Rectangle that has a border and inside color.
- 0 users in image, except strange test case in RPackage, and totally unrelated to actual class.
Now, lets count how many "bordered" stuff we have: - Morph borderStyle which using BorderStyle - BorderedMorph, which has borderWidth borderColor (and if you combine it with color inherited from Morph, you get exactly what Quadrangle has).. - Canvas protocol , supports #borderXYZ everywhere...
it is funny, how much attention this visual property drawn from developers :) (not mentioning an amazing amount of efforts making rounded corners (and of course drawing rounded borders there as well))
-- Best regards, Igor Stasenko.
On 22 December 2012 14:33, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
you mean bounds, inner bounds, inset bounds, outer boundsâ¦
:)
yeah.. morph's bounds is a jungle. we should think how to reduce them, because it makes model unbearable: Morph methodDict keys select: [:each | each endsWith: 'Bounds' ] #(#focusBounds #layoutBounds #fullBounds #adjustLayoutBounds #defaultBounds #worldBounds #flashBounds #submorphBounds #clippingBounds #privateFullBounds #outerBounds #preferredKeyboardBounds #innerBounds) -- Best regards, Igor Stasenko.
participants (2)
-
Igor Stasenko -
Stéphane Ducasse