Open abstract instantiable class
The class of gadgets that can be used to provide spacing around a sheet.
child:limited(<sequence> of: <sheet>).
thickness: <integer>. Default value: 1.
duim-gadgets
duim-gadgets
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.
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); <null-pane>, page 475
<separator>, page 641
with-spacing, page 697