TextAttribute

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

    Declaration

    Swift

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

    Parameters

    raw

    The raw integer value to initialise the enum from

  • Invalid attribute, like bad spelling or grammar.

    Declaration

    Swift

    static let invalid: AtkTextAttribute
  • The pixel width of the left margin

    Declaration

    Swift

    static let leftMargin: AtkTextAttribute
  • The pixel width of the right margin

    Declaration

    Swift

    static let rightMargin: AtkTextAttribute
  • The number of pixels that the text is indented

    Declaration

    Swift

    static let indent: AtkTextAttribute
  • Either “true” or “false” indicating whether text is visible or not

    Declaration

    Swift

    static let invisible: AtkTextAttribute
  • Either “true” or “false” indicating whether text is editable or not

    Declaration

    Swift

    static let editable: AtkTextAttribute
  • Pixels of blank space to leave above each newline-terminated line.

    Declaration

    Swift

    static let pixelsAboveLines: AtkTextAttribute
  • Pixels of blank space to leave below each newline-terminated line.

    Declaration

    Swift

    static let pixelsBelowLines: AtkTextAttribute
  • Pixels of blank space to leave between wrapped lines inside the same newline-terminated line (paragraph).

    Declaration

    Swift

    static let pixelsInsideWrap: AtkTextAttribute
  • “true” or “false” whether to make the background color for each character the height of the highest font used on the current line, or the height of the font used for the current character.

    Declaration

    Swift

    static let bgFullHeight: AtkTextAttribute
  • Number of pixels that the characters are risen above the baseline. See also ATK_TEXT_ATTR_TEXT_POSITION.

    Declaration

    Swift

    static let rise: AtkTextAttribute
  • “none”, “single”, “double”, “low”, or “error”

    Declaration

    Swift

    static let underline: AtkTextAttribute
  • “true” or “false” whether the text is strikethrough

    Declaration

    Swift

    static let strikethrough: AtkTextAttribute
  • The size of the characters in points. eg: 10

    Declaration

    Swift

    static let size: AtkTextAttribute
  • The scale of the characters. The value is a string representation of a double

    Declaration

    Swift

    static let scale: AtkTextAttribute
  • The weight of the characters.

    Declaration

    Swift

    static let weight: AtkTextAttribute
  • The language used

    Declaration

    Swift

    static let language: AtkTextAttribute
  • The font family name

    Declaration

    Swift

    static let familyName: AtkTextAttribute
  • The background color. The value is an RGB value of the format “u,u,u

    Declaration

    Swift

    static let bgColor: AtkTextAttribute
  • The foreground color. The value is an RGB value of the format “u,u,u

    Declaration

    Swift

    static let fgColor: AtkTextAttribute
  • “true” if a GdkBitmap is set for stippling the background color.

    Declaration

    Swift

    static let bgStipple: AtkTextAttribute
  • “true” if a GdkBitmap is set for stippling the foreground color.

    Declaration

    Swift

    static let fgStipple: AtkTextAttribute
  • The wrap mode of the text, if any. Values are “none”, “char”, “word”, or “word_char”.

    Declaration

    Swift

    static let wrapMode: AtkTextAttribute
  • The direction of the text, if set. Values are “none”, “ltr” or “rtl”

    Declaration

    Swift

    static let direction: AtkTextAttribute
  • The justification of the text, if set. Values are “left”, “right”, “center” or “fill”

    Declaration

    Swift

    static let justification: AtkTextAttribute
  • The stretch of the text, if set. Values are “ultra_condensed”, “extra_condensed”, “condensed”, “semi_condensed”, “normal”, “semi_expanded”, “expanded”, “extra_expanded” or “ultra_expanded”

    Declaration

    Swift

    static let stretch: AtkTextAttribute
  • The capitalization variant of the text, if set. Values are “normal” or “small_caps”

    Declaration

    Swift

    static let variant: AtkTextAttribute
  • The slant style of the text, if set. Values are “normal”, “oblique” or “italic”

    Declaration

    Swift

    static let style: AtkTextAttribute
  • The vertical position with respect to the baseline. Values are “baseline”, “super”, or “sub”. Note that a super or sub text attribute refers to position with respect to the baseline of the prior character.

    Declaration

    Swift

    static let textPosition: AtkTextAttribute
  • not a valid text attribute, used for finding end of enumeration

    Declaration

    Swift

    static let lastDefined: AtkTextAttribute