#[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
Source§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 HasParamSpec for Underline
impl HasParamSpec for Underline
Source§impl Ord for Underline
impl Ord for Underline
Source§impl PartialOrd for Underline
impl PartialOrd for Underline
Source§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 StructuralPartialEq for Underline
Auto Trait Implementations§
impl Freeze for Underline
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> 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
.