Line
class Line: PDFElement
A PDF line element for a LyricsSection
-
The parts in the line
Declaration
Swift
let parts: [Part]
-
The height of a single part
Declaration
Swift
let height: CGFloat
-
Init the line element
Declaration
Swift
init(parts: [Song.Section.Line.Part], chords: [ChordDefinition])
Parameters
parts
The parts of the line
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
-
A PDF part element for a
See moreLine
in aLyricsSection
Declaration
Swift
class Part: PDFElement