Line
class Line: PDFElement
A PDF line element for a GridSection
-
The line with the grids
-
All the chords from the song
Declaration
Swift
let chords: [ChordDefinition]
-
Init the line element
Declaration
Swift
init(_ grid: [Song.Section.Line.Grid], chords: [ChordDefinition])
Parameters
grid
The line with the grids
chords
All the chords from the song
-
Draw the line element
Declaration
Swift
func draw(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)
Parameters
rect
The available rectangle
calculationOnly
Bool if only the Bounding Rect should be calculated
pageRect
The page size of the PDF document