[][src]Enum pango::Underline

#[non_exhaustive]pub enum Underline {
    None,
    Single,
    Double,
    Low,
    Error,
    // some variants omitted
}

The Underline enumeration is used to specify whether text should be underlined, and if so, the type of underlining.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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. Underline::Single should be used for extended portions of text.

Error

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.

Trait Implementations

impl Clone for Underline[src]

impl Copy for Underline[src]

impl Debug for Underline[src]

impl Display for Underline[src]

impl Eq for Underline[src]

impl<'a> FromValue<'a> for Underline[src]

impl<'a> FromValueOptional<'a> for Underline[src]

impl Hash for Underline[src]

impl Ord for Underline[src]

impl PartialEq<Underline> for Underline[src]

impl PartialOrd<Underline> for Underline[src]

impl SetValue for Underline[src]

impl StaticType for Underline[src]

impl StructuralEq for Underline[src]

impl StructuralPartialEq for Underline[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: ToValue + SetValue + Send + ?Sized

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.