Published release 0.2.1. Unreleased PR #2 reference.
LOOM 0.2.1 / 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
struct LayoutInsetsConforms to: Swift.Equatable, Swift.Hashable, Swift.Sendable, Swift.SendableMetatype.
Nonnegative terminal-cell insets, clamped against the supplied area during layout.
Source · Layout.swift:20left
var left: IntLeft padding in cells.
Source · Layout.swift:21right
var right: IntRight padding in cells.
Source · Layout.swift:22top
var top: IntTop padding in cells.
Source · Layout.swift:23bottom
var bottom: IntBottom padding in cells.
Source · Layout.swift:24init(left:right:top:bottom:)
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.
init(all:)
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.