Next Previous Up Top Contents Index

8.11 DUIM-Gadgets Module

<spacing>

Open abstract instantiable class

Summary

The class of gadgets that can be used to provide spacing around a sheet.

Superclasses

<gadget>

Init-keywords

child:
An instance of type limited(<sequence> of: <sheet>).

thickness:
An instance of type <integer>. Default value: 1.

Library

duim-gadgets

Module

duim-gadgets

Description

The class of gadgets that can be used to provide spacing around a sheet.

The child: init-keyword is the sheet or sheets that you are adding spacing around.

The thickness: init-keyword specifies the thickness of the spacing required.

It is usually clearer to use the with-spacing macro, rather than to create an instance of <spacing> explicitly.

Operations

None.

Example

The following creates a vertical layout containing two buttons separated by a text field that has spacing added to it.

contain(vertically () 
          make(<button>, label: "Hello");
          make(<spacing>, 
               child: make(<text-field>), 
               thickness: 10); 
          make(<button>, label: "World") 
        end);

See also

<null-pane>, page 475

<separator>, page 641

with-spacing, page 697


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index