Enumeration

AtkTextAttribute

Declaration

enum Atk.TextAttribute

Description [src]

Describes the text attributes supported.

Members

Name Description
ATK_TEXT_ATTR_INVALID

Invalid attribute, like bad spelling or grammar.

ATK_TEXT_ATTR_LEFT_MARGIN

The pixel width of the left margin.

ATK_TEXT_ATTR_RIGHT_MARGIN

The pixel width of the right margin.

ATK_TEXT_ATTR_INDENT

The number of pixels that the text is indented.

ATK_TEXT_ATTR_INVISIBLE

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

ATK_TEXT_ATTR_EDITABLE

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

ATK_TEXT_ATTR_PIXELS_ABOVE_LINES

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

ATK_TEXT_ATTR_PIXELS_BELOW_LINES

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

ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP

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

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.

ATK_TEXT_ATTR_RISE

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

ATK_TEXT_ATTR_UNDERLINE

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

ATK_TEXT_ATTR_STRIKETHROUGH

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

ATK_TEXT_ATTR_SIZE

The size of the characters in points. eg: 10

ATK_TEXT_ATTR_SCALE

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

ATK_TEXT_ATTR_WEIGHT

The weight of the characters.

ATK_TEXT_ATTR_LANGUAGE

The language used.

ATK_TEXT_ATTR_FAMILY_NAME

The font family name.

ATK_TEXT_ATTR_BG_COLOR

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

ATK_TEXT_ATTR_FG_COLOR

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

ATK_TEXT_ATTR_BG_STIPPLE

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

ATK_TEXT_ATTR_FG_STIPPLE

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

ATK_TEXT_ATTR_WRAP_MODE

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

ATK_TEXT_ATTR_DIRECTION

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

ATK_TEXT_ATTR_JUSTIFICATION

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

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”

ATK_TEXT_ATTR_VARIANT

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

ATK_TEXT_ATTR_STYLE

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

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.

ATK_TEXT_ATTR_LAST_DEFINED

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

Type functions

atk_text_attribute_for_name

Get the AtkTextAttribute type corresponding to a text attribute name.

atk_text_attribute_get_name

Gets the name corresponding to the AtkTextAttribute.

atk_text_attribute_get_value

Gets the value for the index of the AtkTextAttribute.

atk_text_attribute_register

Associate name with a new AtkTextAttribute.