LayoutProperties
Last updated at 8:30 am UTC on 7 August 2020
class comment for LayoutProperties (undated Squeak5.2-18229-64bit)
This class provides a compact bit encoding for the most commonly used layout properties.
Normally a Morph does not have a LayoutProperties object assigned:
m := Morph new.
m layoutPolicy
nil
See LayoutPolicy.
A LayoutProperties object is assigned when the Morph object acts as a layout manager controlling the arrangement of its submorphs.
LayoutProperties selectors asSortedCollection
a SortedCollection(#asTableLayoutProperties #cellGap #cellInset #cellPositioning #cellSpacing #disableLayout #disableLayout:
#disableTableLayout #disableTableLayout: #hResizing #hResizing: #includesTableProperties #initialize #initializeFrom:
#layoutInset #listCentering #listDirection #listSpacing #maxCellSize #minCellSize #reverseTableCells #rubberBandCells
#stringWithLayout #vResizing #vResizing: #wrapCentering #wrapDirection)
Layout properties remain undefined also after you have assigned a layoutPolicy:
myLayoutMorph := RectangleMorph new.
myLayoutMorph color: Color white darker.
myLayoutMorph extent: (Display extent) 0.8.
myLayoutMorph layoutPolicy: TableLayout new.
myLayoutMorph openInWorld.
myLayoutMorph layoutProperties nil
Even after adding a submorph the layoutProperties remain nil:
myLayoutMorph := RectangleMorph new.
myLayoutMorph color: Color white darker.
myLayoutMorph extent: (Display extent) 0.8.
myLayoutMorph layoutPolicy: TableLayout new.
myLayoutMorph openInWorld.
myLayoutMorph addMorph: (RectangleMorph new color: Color white; extent: myLayoutMorph extent 0.9).
myLayoutMorph layoutProperties nil
... to be contiued