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

Chord Name

Top Bar

Nut

  • Draw the nut of the chord

    Declaration

    Swift

    func drawNut(rect: inout CGRect, calculationOnly: Bool)

    Parameters

    rect

    The available rect

    calculationOnly

    Bool if only the Bounding Rect should be calculated

Base Fret

Grid

  • Draw the grid of the chords

    Declaration

    Swift

    func drawGrid(rect: inout CGRect, calculationOnly: Bool)

    Parameters

    rect

    The available rect

    calculationOnly

    Bool if only the Bounding Rect should be calculated

Frets

Barres

Notes Bar

  • Draw the notes bar underneath the grid

    Declaration

    Swift

    func drawNotesBar(rect: inout CGRect)

    Parameters

    rect

    The available rect