#[non_exhaustive]pub enum TextAttribute {
Show 30 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,
}Expand description
Describes the text attributes supported
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Invalid
Invalid attribute, like bad spelling or grammar.
LeftMargin
The pixel width of the left margin
RightMargin
The pixel width of the right margin
Indent
The number of pixels that the text is indented
Invisible
Either “true” or “false” indicating whether text is visible or not
Editable
Either “true” or “false” indicating whether text is editable or not
PixelsAboveLines
Pixels of blank space to leave above each newline-terminated line.
PixelsBelowLines
Pixels of blank space to leave below each newline-terminated line.
PixelsInsideWrap
Pixels of blank space to leave between wrapped lines inside the same newline-terminated line (paragraph).
BgFullHeight
“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.
Rise
Number of pixels that the characters are risen above the baseline. See also ATK_TEXT_ATTR_TEXT_POSITION.
Underline
“none”, “single”, “double”, “low”, or “error”
Strikethrough
“true” or “false” whether the text is strikethrough
Size
The size of the characters in points. eg: 10
Scale
The scale of the characters. The value is a string representation of a double
Weight
The weight of the characters.
Language
The language used
FamilyName
The font family name
BgColor
The background color. The value is an RGB value of the format “u,u,u”
FgColor
The foreground color. The value is an RGB value of the format “u,u,u”
BgStipple
“true” if a GdkBitmap is set for stippling the background color.
FgStipple
“true” if a GdkBitmap is set for stippling the foreground color.
WrapMode
The wrap mode of the text, if any. Values are “none”, “char”, “word”, or “word_char”.
Direction
The direction of the text, if set. Values are “none”, “ltr” or “rtl”
Justification
The justification of the text, if set. Values are “left”, “right”, “center” or “fill”
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”
Variant
The capitalization variant of the text, if set. Values are “normal” or “small_caps”
Style
The slant style of the text, if set. Values are “normal”, “oblique” or “italic”
TextPosition
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.
LastDefined
not a valid text attribute, used for finding end of enumeration
Implementations§
Trait Implementations§
Source§impl Clone for TextAttribute
impl Clone for TextAttribute
Source§fn clone(&self) -> TextAttribute
fn clone(&self) -> TextAttribute
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TextAttribute
Source§impl Debug for TextAttribute
impl Debug for TextAttribute
Source§impl Display for TextAttribute
impl Display for TextAttribute
impl Eq for TextAttribute
Source§impl From<TextAttribute> for Value
impl From<TextAttribute> for Value
Source§fn from(v: TextAttribute) -> Self
fn from(v: TextAttribute) -> Self
Source§impl<'a> FromValue<'a> for TextAttribute
impl<'a> FromValue<'a> for TextAttribute
Source§type Checker = GenericValueTypeChecker<TextAttribute>
type Checker = GenericValueTypeChecker<TextAttribute>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for TextAttribute
impl HasParamSpec for TextAttribute
type ParamSpec = ParamSpecEnum
Source§type SetValue = TextAttribute
type SetValue = TextAttribute
type BuilderFn = fn(&str, TextAttribute) -> ParamSpecEnumBuilder<'_, TextAttribute>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for TextAttribute
impl Hash for TextAttribute
Source§impl Ord for TextAttribute
impl Ord for TextAttribute
Source§fn cmp(&self, other: &TextAttribute) -> Ordering
fn cmp(&self, other: &TextAttribute) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TextAttribute
impl PartialEq for TextAttribute
Source§impl PartialOrd for TextAttribute
impl PartialOrd for TextAttribute
Source§impl StaticType for TextAttribute
impl StaticType for TextAttribute
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl StructuralPartialEq for TextAttribute
Source§impl ToValue for TextAttribute
impl ToValue for TextAttribute
Source§impl ValueType for TextAttribute
impl ValueType for TextAttribute
Source§type Type = TextAttribute
type Type = TextAttribute
Type from. Read moreAuto Trait Implementations§
impl Freeze for TextAttribute
impl RefUnwindSafe for TextAttribute
impl Send for TextAttribute
impl Sync for TextAttribute
impl Unpin for TextAttribute
impl UnsafeUnpin for TextAttribute
impl UnwindSafe for TextAttribute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.