AttrType

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

    Declaration

    Swift

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

    Parameters

    raw

    The raw integer value to initialise the enum from

  • does not happen

    Declaration

    Swift

    static let invalid: PangoAttrType
  • language ([structPango.AttrLanguage])

    Declaration

    Swift

    static let language: PangoAttrType
  • font family name list ([structPango.AttrString])

    Declaration

    Swift

    static let family: PangoAttrType
  • font slant style ([structPango.AttrInt])

    Declaration

    Swift

    static let style: PangoAttrType
  • font weight ([structPango.AttrInt])

    Declaration

    Swift

    static let weight: PangoAttrType
  • font variant (normal or small caps) ([structPango.AttrInt])

    Declaration

    Swift

    static let variant: PangoAttrType
  • font stretch ([structPango.AttrInt])

    Declaration

    Swift

    static let stretch: PangoAttrType
  • font size in points scaled by PANGO_SCALE ([structPango.AttrInt])

    Declaration

    Swift

    static let size: PangoAttrType
  • font description ([structPango.AttrFontDesc])

    Declaration

    Swift

    static let fontDesc: PangoAttrType
  • foreground color ([structPango.AttrColor])

    Declaration

    Swift

    static let foreground: PangoAttrType
  • background color ([structPango.AttrColor])

    Declaration

    Swift

    static let background: PangoAttrType
  • whether the text has an underline ([structPango.AttrInt])

    Declaration

    Swift

    static let underline: PangoAttrType
  • whether the text is struck-through ([structPango.AttrInt])

    Declaration

    Swift

    static let strikethrough: PangoAttrType
  • baseline displacement ([structPango.AttrInt])

    Declaration

    Swift

    static let rise: PangoAttrType
  • shape ([structPango.AttrShape])

    Declaration

    Swift

    static let shape: PangoAttrType
  • font size scale factor ([structPango.AttrFloat])

    Declaration

    Swift

    static let scale: PangoAttrType
  • whether fallback is enabled ([structPango.AttrInt])

    Declaration

    Swift

    static let fallback: PangoAttrType
  • letter spacing ([structPangoAttrInt])

    Declaration

    Swift

    static let letterSpacing: PangoAttrType
  • underline color ([structPango.AttrColor])

    Declaration

    Swift

    static let underlineColor: PangoAttrType
  • strikethrough color ([structPango.AttrColor])

    Declaration

    Swift

    static let strikethroughColor: PangoAttrType
  • font size in pixels scaled by PANGO_SCALE ([structPango.AttrInt])

    Declaration

    Swift

    static let absoluteSize: PangoAttrType
  • base text gravity ([structPango.AttrInt])

    Declaration

    Swift

    static let gravity: PangoAttrType
  • gravity hint ([structPango.AttrInt])

    Declaration

    Swift

    static let gravityHint: PangoAttrType
  • OpenType font features ([structPango.AttrFontFeatures]). Since 1.38

    Declaration

    Swift

    static let fontFeatures: PangoAttrType
  • foreground alpha ([structPango.AttrInt]). Since 1.38

    Declaration

    Swift

    static let foregroundAlpha: PangoAttrType
  • background alpha ([structPango.AttrInt]). Since 1.38

    Declaration

    Swift

    static let backgroundAlpha: PangoAttrType
  • whether breaks are allowed ([structPango.AttrInt]). Since 1.44

    Declaration

    Swift

    static let allowBreaks: PangoAttrType
  • how to render invisible characters ([structPango.AttrInt]). Since 1.44

    Declaration

    Swift

    static let show: PangoAttrType
  • whether to insert hyphens at intra-word line breaks ([structPango.AttrInt]). Since 1.44

    Declaration

    Swift

    static let insertHyphens: PangoAttrType
  • whether the text has an overline ([structPango.AttrInt]). Since 1.46

    Declaration

    Swift

    static let overline: PangoAttrType
  • overline color ([structPango.AttrColor]). Since 1.46

    Declaration

    Swift

    static let overlineColor: PangoAttrType
  • line height factor ([structPango.AttrFloat]). Since: 1.50

    Declaration

    Swift

    static let lineHeight: PangoAttrType
  • line height ([structPango.AttrInt]). Since: 1.50

    Declaration

    Swift

    static let absoluteLineHeight: PangoAttrType
  • Undocumented

    Declaration

    Swift

    static let textTransform: PangoAttrType
  • override segmentation to classify the range of the attribute as a single word ([structPango.AttrInt]). Since 1.50

    Declaration

    Swift

    static let word: PangoAttrType
  • override segmentation to classify the range of the attribute as a single sentence ([structPango.AttrInt]). Since 1.50

    Declaration

    Swift

    static let sentence: PangoAttrType
  • baseline displacement ([structPango.AttrInt]). Since 1.50

    Declaration

    Swift

    static let baselineShift: PangoAttrType
  • font-relative size change ([structPango.AttrInt]). Since 1.50

    Declaration

    Swift

    static let fontScale: PangoAttrType