Chords
class Chords: PDFElement
A PDF chords element
Display all the chord diagrams of the song
-
All the chords from the song
Declaration
Swift
let chords: [ChordDefinition]
-
The chord display options
Declaration
Swift
let options: ChordDefinition.DisplayOptions
-
Init the chords element
Declaration
Swift
init(chords: [ChordDefinition], options: ChordDefinition.DisplayOptions)
Parameters
chords
All the chords from the song
options
The chord display options
-
Draw the chords element as a
Section
elementDeclaration
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
-
Declaration
Swift
class Diagram: PDFElement