#[non_exhaustive]
pub enum Underline {
None,
Single,
Double,
Low,
Error,
SingleLine,
DoubleLine,
ErrorLine,
}
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
None
no underline should be drawn
Single
a single underline should be drawn
Double
a double underline should be drawn
Low
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.
Error
an underline indicating an error should
be drawn below. The exact style of rendering is up to the
Renderer
in use, but typical styles include wavy
or dotted lines.
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.
SingleLine
Like @PANGO_UNDERLINE_SINGLE, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46.
DoubleLine
Like @PANGO_UNDERLINE_DOUBLE, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46.
ErrorLine
Like @PANGO_UNDERLINE_ERROR, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46.
Trait Implementations§
source§impl<'a> FromValue<'a> for Underline
impl<'a> FromValue<'a> for Underline
§type Checker = GenericValueTypeChecker<Underline>
type Checker = GenericValueTypeChecker<Underline>
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moresource§impl Ord for Underline
impl Ord for Underline
source§impl PartialEq<Underline> for Underline
impl PartialEq<Underline> for Underline
source§impl PartialOrd<Underline> for Underline
impl PartialOrd<Underline> for Underline
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for Underline
impl StaticType for Underline
source§fn static_type() -> Type
fn static_type() -> Type
Self
.impl Copy for Underline
impl Eq for Underline
impl StructuralEq for Underline
impl StructuralPartialEq for Underline
Auto Trait Implementations§
impl RefUnwindSafe for Underline
impl Send for Underline
impl Sync for Underline
impl Unpin for Underline
impl UnwindSafe for Underline
Blanket Implementations§
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> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
source§impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.