Atk.TextAttribute
Description: Reference for Atk.TextAttribute

### Enumeration

# AtkTextAttribute

since: 1.0

#### Declaration

    enum Atk.TextAttribute

#### Description [src]

Describes the text attributes supported.

Available since: 1.0

#### Members

`ATK_TEXT_ATTR_INVALID`

  Invalid attribute, like bad spelling or grammar.

  - Value: `0`
  - Nickname: `invalid`
  - Available since: 1.0
`ATK_TEXT_ATTR_LEFT_MARGIN`

  The pixel width of the left margin.

  - Value: `1`
  - Nickname: `left-margin`
  - Available since: 1.0
`ATK_TEXT_ATTR_RIGHT_MARGIN`

  The pixel width of the right margin.

  - Value: `2`
  - Nickname: `right-margin`
  - Available since: 1.0
`ATK_TEXT_ATTR_INDENT`

  The number of pixels that the text is indented.

  - Value: `3`
  - Nickname: `indent`
  - Available since: 1.0
`ATK_TEXT_ATTR_INVISIBLE`

  Either “true” or “false” indicating whether text is visible or not.

  - Value: `4`
  - Nickname: `invisible`
  - Available since: 1.0
`ATK_TEXT_ATTR_EDITABLE`

  Either “true” or “false” indicating whether text is editable or not.

  - Value: `5`
  - Nickname: `editable`
  - Available since: 1.0
`ATK_TEXT_ATTR_PIXELS_ABOVE_LINES`

  Pixels of blank space to leave above each newline-terminated line.

  - Value: `6`
  - Nickname: `pixels-above-lines`
  - Available since: 1.0
`ATK_TEXT_ATTR_PIXELS_BELOW_LINES`

  Pixels of blank space to leave below each newline-terminated line.

  - Value: `7`
  - Nickname: `pixels-below-lines`
  - Available since: 1.0
`ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP`

  Pixels of blank space to leave between wrapped lines inside the same newline-terminated line (paragraph).

  - Value: `8`
  - Nickname: `pixels-inside-wrap`
  - Available since: 1.0
`ATK_TEXT_ATTR_BG_FULL_HEIGHT`

  “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.

  - Value: `9`
  - Nickname: `bg-full-height`
  - Available since: 1.0
`ATK_TEXT_ATTR_RISE`

  Number of pixels that the characters are risen above the baseline. See also ATK_TEXT_ATTR_TEXT_POSITION.

  - Value: `10`
  - Nickname: `rise`
  - Available since: 1.0
`ATK_TEXT_ATTR_UNDERLINE`

  “none”, “single”, “double”, “low”, or “error”

  - Value: `11`
  - Nickname: `underline`
  - Available since: 1.0
`ATK_TEXT_ATTR_STRIKETHROUGH`

  “true” or “false” whether the text is strikethrough.

  - Value: `12`
  - Nickname: `strikethrough`
  - Available since: 1.0
`ATK_TEXT_ATTR_SIZE`

  The size of the characters in points. eg: 10

  - Value: `13`
  - Nickname: `size`
  - Available since: 1.0
`ATK_TEXT_ATTR_SCALE`

  The scale of the characters. The value is a string representation of a double.

  - Value: `14`
  - Nickname: `scale`
  - Available since: 1.0
`ATK_TEXT_ATTR_WEIGHT`

  The weight of the characters.

  - Value: `15`
  - Nickname: `weight`
  - Available since: 1.0
`ATK_TEXT_ATTR_LANGUAGE`

  The language used.

  - Value: `16`
  - Nickname: `language`
  - Available since: 1.0
`ATK_TEXT_ATTR_FAMILY_NAME`

  The font family name.

  - Value: `17`
  - Nickname: `family-name`
  - Available since: 1.0
`ATK_TEXT_ATTR_BG_COLOR`

  The background color. The value is an RGB value of the format “%u,%u,%u”

  - Value: `18`
  - Nickname: `bg-color`
  - Available since: 1.0
`ATK_TEXT_ATTR_FG_COLOR`

  The foreground color. The value is an RGB value of the format “%u,%u,%u”

  - Value: `19`
  - Nickname: `fg-color`
  - Available since: 1.0
`ATK_TEXT_ATTR_BG_STIPPLE`

  “true” if a `GdkBitmap` is set for stippling the background color.

  - Value: `20`
  - Nickname: `bg-stipple`
  - Available since: 1.0
`ATK_TEXT_ATTR_FG_STIPPLE`

  “true” if a `GdkBitmap` is set for stippling the foreground color.

  - Value: `21`
  - Nickname: `fg-stipple`
  - Available since: 1.0
`ATK_TEXT_ATTR_WRAP_MODE`

  The wrap mode of the text, if any. Values are “none”, “char”, “word”, or “word_char”.

  - Value: `22`
  - Nickname: `wrap-mode`
  - Available since: 1.0
`ATK_TEXT_ATTR_DIRECTION`

  The direction of the text, if set. Values are “none”, “ltr” or “rtl”

  - Value: `23`
  - Nickname: `direction`
  - Available since: 1.0
`ATK_TEXT_ATTR_JUSTIFICATION`

  The justification of the text, if set. Values are “left”, “right”, “center” or “fill”

  - Value: `24`
  - Nickname: `justification`
  - Available since: 1.0
`ATK_TEXT_ATTR_STRETCH`

  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”

  - Value: `25`
  - Nickname: `stretch`
  - Available since: 1.0
`ATK_TEXT_ATTR_VARIANT`

  The capitalization variant of the text, if set. Values are “normal” or “small_caps”

  - Value: `26`
  - Nickname: `variant`
  - Available since: 1.0
`ATK_TEXT_ATTR_STYLE`

  The slant style of the text, if set. Values are “normal”, “oblique” or “italic”

  - Value: `27`
  - Nickname: `style`
  - Available since: 1.0
`ATK_TEXT_ATTR_TEXT_POSITION`

  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.

  - Value: `28`
  - Nickname: `text-position`
  - Available since: 1.0
`ATK_TEXT_ATTR_LAST_DEFINED`

  Not a valid text attribute, used for finding end of enumeration.

  - Value: `29`
  - Nickname: `last-defined`
  - Available since: 1.0

#### Type functions

###### atk_text_attribute_for_name

Get the `AtkTextAttribute` type corresponding to a text attribute name.

since: 1.0

###### atk_text_attribute_get_name

Gets the name corresponding to the `AtkTextAttribute`.

since: 1.0

###### atk_text_attribute_get_value

Gets the value for the index of the `AtkTextAttribute`.

since: 1.0

###### atk_text_attribute_register

Associate `name` with a new `AtkTextAttribute`.

since: 1.0