#DOCUMENTATION by cg
class: Layout
comment/format in: #rectangleRelativeTo:preferred:
category of: #rectangleRelativeTo:preferred:
class: Layout class
comment/format in: #documentation
--- a/Layout.st Tue Jul 16 11:11:56 2019 +0200
+++ b/Layout.st Wed Jul 17 10:15:54 2019 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
"
COPYRIGHT (c) 1995 by Claus Gittinger
All Rights Reserved
@@ -41,8 +43,8 @@
This is an abstract superclass for geometry controlling objects.
While old smalltalks used relative origin/extent/corner and absolute
origin/corner/extents, these mechanisms are now being removed from the
- view itself into geometry controlling objects, which are given a superviews
- size and are to return a components size upon request.
+ view itself into geometry controlling objects, which are given a superview's
+ size and are to return a component's size upon request.
This allows more flexible geometry management, since any algorithm can
be implemented (if the existing ones are not sufficient, add you own subclass
and install it as layout-object in your view).
@@ -83,6 +85,19 @@
^ self == Layout.
! !
+!Layout methodsFor:'computing'!
+
+rectangleRelativeTo:superRectangle preferred:prefRectHolder
+ "compute the rectangle represented by the receiver,
+ given the superView's rectangle and the view's preferredExtent.
+ Must be implemented by concrete subclasses."
+
+ ^ self subclassResponsibility
+
+ "Modified: / 27-05-1998 / 10:19:21 / cg"
+ "Modified (comment): / 17-07-2019 / 10:02:45 / Claus Gittinger"
+! !
+
!Layout methodsFor:'converting'!
asLayout
@@ -133,16 +148,6 @@
^ false
-!
-
-rectangleRelativeTo:superRectangle preferred:prefRectHolder
- "compute the rectangle represented by the receiver,
- given the superViews rectangle and the view's preferredExtent.
- Must be implemented by concrete subclasses."
-
- ^ self subclassResponsibility
-
- "Modified: / 27.5.1998 / 10:19:21 / cg"
! !
!Layout class methodsFor:'documentation'!