loom & weft
Made for Swift.

Unreleased APIs from PR #2. Not in 0.2.1. Stable 0.2.1 reference.

LOOM Unreleased (PR #2) / RENDERING, VIEWPORTS, AND COMPOSITION

LayoutInsets

Nonnegative terminal-cell insets, clamped against the supplied area during layout.

Standard inherited Swift protocol operations such as synthesized equality and OptionSet set operations are not repeated. The public declarations below are extracted from the exact source revision listed in the coverage manifest.

Members on this page

Feature guides and release status

LayoutInsets

Structure
struct LayoutInsets

Conforms to: Swift.Equatable, Swift.Hashable, Swift.Sendable, Swift.SendableMetatype.

Nonnegative terminal-cell insets, clamped against the supplied area during layout.

Source · Layout.swift:20

left

Instance Property
var left: Int

Left padding in cells.

Source · Layout.swift:21

right

Instance Property
var right: Int

Right padding in cells.

Source · Layout.swift:22

top

Instance Property
var top: Int

Top padding in cells.

Source · Layout.swift:23

bottom

Instance Property
var bottom: Int

Bottom padding in cells.

Source · Layout.swift:24

init(left:right:top:bottom:)

Initializer
init(left: Int = 0, right: Int = 0, top: Int = 0, bottom: Int = 0)

Creates a value with the supplied arguments. Default arguments are shown in the declaration.

Parameters (4)
left
Argument type and any default are shown in the declaration; see the behavior notes above.
right
Argument type and any default are shown in the declaration; see the behavior notes above.
top
Argument type and any default are shown in the declaration; see the behavior notes above.
bottom
Argument type and any default are shown in the declaration; see the behavior notes above.
Source · Layout.swift:26

init(all:)

Initializer
init(all cells: Int)

Creates a value with the supplied arguments. Default arguments are shown in the declaration.

Parameters (1)
all
Argument type and any default are shown in the declaration; see the behavior notes above.
Source · Layout.swift:33