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 = NSMutableAttributedString() - 
                  
                  
The size of the part
Note
Used by theLineelement to define the rectangleDeclaration
Swift
let size: CGSize - 
                  
                  
Init the part element
Declaration
Swift
init(part: Song.Section.Line.Part, chords: [ChordDefinition])Parameters
partThe part of the lyrics line
chordsAll the chords of the song
 - 
                  
                  
Draw the part 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
 
View on GitHub