Serifs
public struct Serifs : Hashable
Encapsulates the parameters of the top, bottom, left and right serifs of the grid.
-
Default set, where all the serif parameters are set to their
.default
.Declaration
Swift
public static let `default`: Grid.Serifs
-
The serifs for vertical lines at the top of the grid.
Declaration
Swift
public var top: Grid.SerifParameters?
-
The serifs for vertical lines at the bottom of the grid.
Declaration
Swift
public var bottom: Grid.SerifParameters?
-
The serifs for horizontal lines on the left of the grid.
Declaration
Swift
public var left: Grid.SerifParameters?
-
The serifs for horizontal lines on the right of the grid.
Declaration
Swift
public var right: Grid.SerifParameters?
-
Creates a new set of the serif parameters for each kind of serifs.
Each parameter’s default value is
SerifParameters.default
.Declaration
Swift
public init(top: SerifParameters? = .default, bottom: SerifParameters? = .default, left: SerifParameters? = .default, right: SerifParameters? = .default)
Parameters
top
The parameters of the serifs for vertical lines at the top of the grid. If specified
nil
, no such serifs will be drawn.bottom
The parameters of the serifs for vertical lines at the bottom of the grid. If specified
nil
, no such serifs will be drawn.left
The parameters of the serifs for horizontal lines on the left of the grid. If specified
nil
, no such serifs will be drawn.right
The parameters of the serifs for horizontal lines on the right of the grid. If specified
nil
, no such serifs will be drawn.