Next Previous Up Top Contents Index

8.11 DUIM-Gadgets Module

with-spacing

Statement macro

Summary

Creates the specified sheet and places spacing around it.

Macro call

with-spacing ([options]) {pane} end

Arguments

options
Dylan argumentsbnf.

pane
A Dylan expressionbnf.

Values

None.

Library

duim-gadgets

Module

duim-gadgets

Description

Creates pane with spacing around it, taking into account any of the specified options.

The options specified may be any of the legal init-keywords used to specify an instance of <spacing>. If no options are specified, then the default spacing is used.

The pane is an expression whose return value is the sheet around which spacing should be placed.

Example

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

See also

<null-pane>, page 475

<spacing>, page 647

with-border, page 696


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index