Next Previous Up Top Contents Index

7.3 DUIM-Layouts Module

<pinboard-layout>

Open abstract instantiable class

Summary

The class of pinboard layouts.

Superclasses

<layout>

Init-keywords

stretchable?:
An instance of type <boolean>.

Library

duim-layouts

Module

duim-layouts

Description

The class of pinboard layouts. Unlike other types of layout, pinboard layouts are unusual in that the positioning and geometry of the children of a pinboard layout are entirely determined by the programmer. You can place children at any point in a pinboard layout, and the pinboard layout does not attempt to calculate an optimum position or size for any of them.

Figure 7.3 Three buttons arranged in a pinboard layout

A pinboard layout leaves the subsequent positions of any children placed in the layout alone. However, the size of each child is constrained according to any constraints that have been specified for those children. Compare this to fixed layouts, where the sizes of any children are not constrained in this way.

Because the size of a pinboard layout's children are constrained, pinboard layouts are most useful for placing sheets randomly in a layout, since DUIM ensures that the sheets remain a sensible size for their contents.

If stretchable?: is true, then the pinboard layout can be resized dynamically as its parent is resized (for instance, by the user resizing a window on screen).

Operations

None.

See also

<fixed-layout>, page 465

<layout>, page 468


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index