Enum atk::TextAttribute [−][src]
#[non_exhaustive] pub enum TextAttribute {}Show variants
Invalid, LeftMargin, RightMargin, Indent, Invisible, Editable, PixelsAboveLines, PixelsBelowLines, PixelsInsideWrap, BgFullHeight, Rise, Underline, Strikethrough, Size, Scale, Weight, Language, FamilyName, BgColor, FgColor, BgStipple, FgStipple, WrapMode, Direction, Justification, Stretch, Variant, Style, TextPosition, LastDefined, // some variants omitted
Expand description
Describes the text attributes supported
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Invalid attribute, like bad spelling or grammar.
The pixel width of the left margin
The pixel width of the right margin
The number of pixels that the text is indented
Either “true” or “false” indicating whether text is visible or not
Either “true” or “false” indicating whether text is editable or not
Pixels of blank space to leave above each newline-terminated line.
Pixels of blank space to leave below each newline-terminated line.
Pixels of blank space to leave between wrapped lines inside the same newline-terminated line (paragraph).
“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.
Number of pixels that the characters are risen above the baseline. See also ATK_TEXT_ATTR_TEXT_POSITION.
“none”, “single”, “double”, “low”, or “error”
“true” or “false” whether the text is strikethrough
The size of the characters in points. eg: 10
The scale of the characters. The value is a string representation of a double
The weight of the characters.
The language used
The font family name
The background color. The value is an RGB value of the format “u
,u
,u
”
The foreground color. The value is an RGB value of the format “u
,u
,u
”
“true” if a GdkBitmap
is set for stippling the background color.
“true” if a GdkBitmap
is set for stippling the foreground color.
The wrap mode of the text, if any. Values are “none”, “char”, “word”, or “word_char”.
The direction of the text, if set. Values are “none”, “ltr” or “rtl”
The justification of the text, if set. Values are “left”, “right”, “center” or “fill”
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”
The capitalization variant of the text, if set. Values are “normal” or “small_caps”
The slant style of the text, if set. Values are “normal”, “oblique” or “italic”
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.
not a valid text attribute, used for finding end of enumeration
Implementations
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for TextAttribute
impl Send for TextAttribute
impl Sync for TextAttribute
impl Unpin for TextAttribute
impl UnwindSafe for TextAttribute
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.