#[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 HasParamSpec for Underline
impl HasParamSpec for Underline
source§impl Ord for Underline
impl Ord for Underline
source§impl PartialEq for Underline
impl PartialEq for Underline
source§impl PartialOrd for Underline
impl PartialOrd 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 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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
.