Enum pango::AttrType [−][src]
#[non_exhaustive] pub enum AttrType {}Show variants
Invalid, Language, Family, Style, Weight, Variant, Stretch, Size, FontDesc, Foreground, Background, Underline, Strikethrough, Rise, Shape, Scale, Fallback, LetterSpacing, UnderlineColor, StrikethroughColor, AbsoluteSize, Gravity, GravityHint, FontFeatures, ForegroundAlpha, BackgroundAlpha, AllowBreaks, Show, InsertHyphens, Overline, OverlineColor, // some variants omitted
Expand description
The AttrType
distinguishes between different types of attributes. Along with the
predefined values, it is possible to allocate additional values
for custom attributes using pango_attr_type_register()
. The predefined
values are given below. The type of structure used to store the
attribute is listed in parentheses after the description.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
does not happen
language (PangoAttrLanguage
)
font family name list (PangoAttrString
)
font slant style (PangoAttrInt
)
font weight (PangoAttrInt
)
font variant (normal or small caps) (PangoAttrInt
)
font stretch (PangoAttrInt
)
font size in points scaled by PANGO_SCALE
(PangoAttrInt
)
font description (PangoAttrFontDesc
)
foreground color (PangoAttrColor
)
background color (PangoAttrColor
)
whether the text has an underline (PangoAttrInt
)
whether the text is struck-through (PangoAttrInt
)
baseline displacement (PangoAttrInt
)
shape (PangoAttrShape
)
font size scale factor (PangoAttrFloat
)
whether fallback is enabled (PangoAttrInt
)
letter spacing (PangoAttrInt
)
underline color (PangoAttrColor
)
strikethrough color (PangoAttrColor
)
font size in pixels scaled by PANGO_SCALE
(PangoAttrInt
)
base text gravity (PangoAttrInt
)
gravity hint (PangoAttrInt
)
OpenType font features (PangoAttrString
). Since 1.38
foreground alpha (PangoAttrInt
). Since 1.38
background alpha (PangoAttrInt
). Since 1.38
whether breaks are allowed (PangoAttrInt
). Since 1.44
how to render invisible characters (PangoAttrInt
). Since 1.44
whether to insert hyphens at intra-word line breaks (PangoAttrInt
). Since 1.44
whether the text has an overline (PangoAttrInt
). Since 1.46
overline color (PangoAttrColor
). Since 1.46
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 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 AttrType
impl UnwindSafe for AttrType
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.