Next Previous Up Top Contents Index

7.3 DUIM-Layouts Module

<layout>

Open abstract class

Summary

The superclass class of all layout classes.

Superclasses

<sheet>

Init-keywords

space-requirement:

An instance of type <space-requirement>. Required.

width:
An instance of type <integer>. Required.

height:
An instance of type <integer>. Required.

min-width:
An instance of type <integer>. Default value: 0.

min-height:
An instance of type <integer>. Default value: 0.

max-width:
An instance of type <integer>. Default value: $fill.

max-height:
An instance of type <integer>. Default value: $fill.

resizable?:
An instance of type <boolean>. Default value: #t.

fixed-width?:
An instance of type <boolean>. Default value: #f.

fixed-height?:
An instance of type <boolean>. Default value: #f.

Library

duim-layouts

Module

duim-layouts

Description

The class of layouts. This is the basic class from which all other forms of layout inherit. You cannot create direct instances of this class.

The space-requirement: init-keyword describes the space required for the layout. It is generally calculated automatically based on the values of the various width and height init-keywords, and the class of layout that is being created.

The width:, height:, min-width:, min-height:, max-width:, and max-height: init-keywords between them describe the configuration of the layout. The default values for these init-keywords (where applicable) are set such that the layout always fills the available space in any given direction.

Finally, three init-keywords are available that control how the layout is affected when the frame containing it is resized. All three init-keywords take boolean values. You can specify whether a layout is resizeable using the resizable?: init-keyword. If fixed-width?: or fixed-height?: are true, then the layout cannot be resized in the appropriate direction. Setting both to #t is equivalent to setting resizeable?: to #f. Different subclasses of layout restrict the values of these init-keywords in different ways, such that, for instance, a row layout has a fixed height.

Operations

None.

See also

<column-layout>, page 456

<grid-layout>, page 466

<pinboard-layout>, page 477

<row-layout>, page 480

<stack-layout>, page 491

<table-layout>, page 494


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index