[Cuis-dev] Layout edgeWeight: how do you like this explanation?

ken.dickey at whidbey.com ken.dickey at whidbey.com
Tue Apr 28 14:45:34 PDT 2020


===============================================
  Proposed brief discussion in the Terse Guide:
===============================================

LayoutMorph's arrange subMorphs as either a horizontal Row or a vertical 
Column.

Along this Major or Layout Axis, subMorphs may be attracted toward one 
side (0.0) or the other (1.0).  This is the LayoutMorph's 
axisEdgeWeight.

If a Row, one can specify this weight symbolically as
   { #rowLeft (0.0), #center (0.5), #rowRight (1.0)}

If a Column, one can specify the weight symbolically as:
   { #columnTop (0.0), #center (0.5), #columnBottom (1.0) }

A LayoutMorph may also have a Morph Separation specified: x at y

======

Each subMorph of a LayoutMorph may have an optional LayoutSpec which the 
subMorph uses to indicate how it wants to be arranged.

Options include treating Morph's width and height as fixed or 
proportional to the LayoutMorph's extent.

A LayoutSpec may also indicate a weighting perpendicular to the Layout 
Axis.   This is the LayoutSpec's offAxisEdgeWeight.

Again, symbols may be used.

If in a Row: { #rowTop (0.0), #center (0.5), #rowBottom (1.0)}

If in a Column: { #columnLeft (0.0), #center (0.5), #columnRight (1.0) }

========================================================================


More information about the Cuis-dev mailing list