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
partsThe parts of the line
chordsAll the chords from the song
-
Draw the line element
Declaration
Swift
func draw(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)Parameters
rectThe available rectangle
calculationOnlyBool if only the Bounding Rect should be calculated
pageRectThe page size of the PDF document
-
A PDF part element for a
See moreLinein aLyricsSectionDeclaration
Swift
class Part: PDFElement
View on GitHub