Next Previous Up Top Contents Index

7.3 DUIM-Layouts Module

allocate-space

Open generic function

Summary

Allocates space within a layout for its children.

Signature

allocate-space pane width height => ()

Arguments

pane
An instance of type <sheet>.

width
An instance of type <integer>.

height
An instance of type <integer>.

Values

None.

Library

duim-layouts

Module

duim-layouts

Description

Allocates space within a layout for its children. During the space allocation pass, a composite pane arranges its children within the available space and allocates space to them according to their space requirements and its own composition rules by calling allocate-space on each of the child panes. For example, <column-layout> arranges all its children in a vertical column. The width and height arguments are the width and height of pane in device units, that is, pixels. These arguments give the amount of space into which all children must fit.

This function actually calls do-allocate-space to perform the calculations. Client code may specialize do-allocate-space, but not call it. Call allocate-space instead.

See also

do-allocate-space, page 462


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index