Layout.st
author claus
Tue, 29 Aug 1995 18:13:19 +0200
changeset 93 f2389560b8eb
parent 88 f8a41aa4b34b
child 94 8888ddd11323
permissions -rw-r--r--
*** empty log message ***

"
 COPYRIGHT (c) 1995 by Claus Gittinger
	      All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"

Object subclass:#Layout
	 instanceVariableNames:''
	 classVariableNames:''
	 poolDictionaries:''
	 category:'Graphics-Geometry'
!

!Layout class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 1995 by Claus Gittinger
	      All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
!

documentation
"
    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.
    This allows more flexible geometry management, since any algorithm can
    be implemented (if the existing ones are not sufficient, add you own subclass
    and instal it as layout-object in your view).

    See more info & examples in concrete subclasses:
	LayoutOrigin LayoutFrame AlignmentOrigin

    Notice: this class was implemented using protocol information
    from alpha testers - it may not be complete or compatible to
    the corresponding ST-80 class. If you encounter any incompatibilities,
    please forward a note to the ST/X team.
!

version
"
$Header: /cvs/stx/stx/libview2/Layout.st,v 1.4 1995-08-29 16:12:37 claus Exp $
"
! !

!Layout class methodsFor:'instance creation'!

new
    ^ self basicNew initialize
! !

!Layout methodsFor:'queries'!

rectangleRelativeTo:superRectangle preferred:prefRect
    ^ self subclassResponsibility
!

isLayout
    ^ true
! !

!Layout methodsFor:'initialization'!

initialize
    ^ self subclassResponsibility
! !