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 part

    Declaration

    Swift

    let text: NSAttributedString
  • The size of the part

    Note

    Used by the Line element to define the rectangle

    Declaration

    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