Enum pango::Underline [−][src]
#[non_exhaustive] pub enum Underline { None, Single, Double, Low, Error, SingleLine, DoubleLine, ErrorLine, // some variants omitted }
Expand description
The Underline
enumeration is used to specify
whether text should be underlined, and if so, the type
of underlining.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
no underline should be drawn
a single underline should be drawn
a double underline should be drawn
a single underline should be drawn at a
position beneath the ink extents of the text being
underlined. This should be used only for underlining
single characters, such as for keyboard accelerators.
Single
should be used for extended
portions of text.
a wavy underline should be drawn below. This underline is typically used to indicate an error such as a possible mispelling; in some cases a contrasting color may automatically be used. This type of underlining is available since Pango 1.4.
Like Single
, but
drawn continuously across multiple runs. This type
of underlining is available since Pango 1.46.
Like Double
, but
drawn continuously across multiple runs. This type
of underlining is available since Pango 1.46.
Like Error
, but
drawn continuously across multiple runs. This type
of underlining is available since Pango 1.46.
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 Underline
impl UnwindSafe for Underline
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.