FormattingAttribute
enum FormattingAttribute: String, Comparable, Codable
Optional formatting attributes for directives
-
Fallback for a simple attribute
Declaration
Swift
case plain
-
Label
Declaration
Swift
case label
-
Alignment
Declaration
Swift
case align
-
Flush
Declaration
Swift
case flush
-
Anchor
Declaration
Swift
case anchor
-
X
Declaration
Swift
case x
-
Y
Declaration
Swift
case y
-
Scale
Declaration
Swift
case scale
-
Source
Declaration
Swift
case src
-
Spread
Declaration
Swift
case spread
-
Width
Declaration
Swift
case width
-
height
Declaration
Swift
case height
-
Implement Comparable
Declaration
Swift
static func < (lhs: FormattingAttribute, rhs: FormattingAttribute) -> Bool
-
This is to make a preferred order of arguments
Declaration
Swift
var order: Int