Part
class Part: PDFElement
A PDF part element for a Line
in a LyricsSection
-
The text of the part
Note
A merge of the optional chord and optional lyrics partDeclaration
Swift
let text: NSAttributedString
-
The size of the part
Note
Used by theLine
element to define the rectangleDeclaration
Swift
let size: CGSize
-
Init the part element
Declaration
Swift
init(part: Song.Section.Line.Part, chords: [ChordDefinition])
Parameters
part
The part of the lyrics line
chords
All the chords of the song
-
Draw the part 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