Underline

public extension Underline
  • Cast constructor, converting any binary integer to a Underline.

    Declaration

    Swift

    @inlinable
    init!<I>(_ raw: I) where I : BinaryInteger

    Parameters

    raw

    The raw integer value to initialise the enum from

  • no underline should be drawn

    Declaration

    Swift

    static let none: Int
  • a single underline should be drawn

    Declaration

    Swift

    static let single: PangoUnderline
  • a double underline should be drawn

    Declaration

    Swift

    static let double: PangoUnderline
  • low

    a single underline should be drawn at a position beneath the ink extents of the text being underlined. This should be used only for underlining single characters, such as for keyboard accelerators. PANGO_UNDERLINE_SINGLE should be used for extended portions of text.

    Declaration

    Swift

    static let low: PangoUnderline
  • an underline indicating an error should be drawn below. The exact style of rendering is up to the PangoRenderer in use, but typical styles include wavy or dotted lines. This underline is typically used to indicate an error such as a possible mispelling; in some cases a contrasting color may automatically be used. This type of underlining is available since Pango 1.4.

    Declaration

    Swift

    static let error: PangoUnderline
  • Like PANGO_UNDERLINE_SINGLE, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46.

    Declaration

    Swift

    static let singleLine: PangoUnderline
  • Like PANGO_UNDERLINE_DOUBLE, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46.

    Declaration

    Swift

    static let doubleLine: PangoUnderline
  • Like PANGO_UNDERLINE_ERROR, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46.

    Declaration

    Swift

    static let errorLine: PangoUnderline