draw(rect:calculationOnly:pageRect:)
func draw(rect: inout CGRect, calculationOnly: Bool, pageRect: CGRect)
                Draw the chords element as a Section element
Parameters
                          
                          rect
                          
                         | 
                        
                           The available rectangle  | 
                      
                          
                          calculationOnly
                          
                         | 
                        
                           Bool if only the Bounding Rect should be calculated  | 
                      
                          
                          pageRect
                          
                         | 
                        
                           The page size of the PDF document  | 
                      
- 
                  
                  
Draw the name of the chord
Declaration
Swift
func drawChordName(rect: inout CGRect)Parameters
rectThe available rect
 
- 
                  
                  
Draw the top bar of the chord
Declaration
Swift
func drawTopBar(rect: inout CGRect)Parameters
rectThe available rect
 
- 
                  
                  
Draw the nut of the chord
Declaration
Swift
func drawNut(rect: inout CGRect, calculationOnly: Bool)Parameters
rectThe available rect
calculationOnlyBool if only the Bounding Rect should be calculated
 
- 
                  
                  
Draw the base fret of the chord
Declaration
Swift
func drawBaseFret(rect: inout CGRect)Parameters
rectThe available rect
 
- 
                  
                  
Draw the grid of the chords
Declaration
Swift
func drawGrid(rect: inout CGRect, calculationOnly: Bool)Parameters
rectThe available rect
calculationOnlyBool if only the Bounding Rect should be calculated
 
- 
                  
                  
Draw the frets in the grid
Declaration
Swift
func drawFrets(rect: inout CGRect)Parameters
rectThe available rect
 
- 
                  
                  
Draw the barres in the grid
Declaration
Swift
func drawBarres(rect: inout CGRect)Parameters
rectThe available rect
 
- 
                  
                  
Draw the notes bar underneath the grid
Declaration
Swift
func drawNotesBar(rect: inout CGRect)Parameters
rectThe available rect
 
View on GitHub