[][src]Struct qt_gui::q_text_char_format::UnderlineStyle

#[repr(transparent)]
pub struct UnderlineStyle(_);

This enum describes the different ways drawing underlined text.

C++ enum: QTextCharFormat::UnderlineStyle.

C++ documentation:

This enum describes the different ways drawing underlined text.

See also Qt::PenStyle.

Methods

impl UnderlineStyle[src]

pub fn to_int(&self) -> c_int[src]

impl UnderlineStyle[src]

pub const NoUnderline: UnderlineStyle[src]

Text is draw without any underlining decoration. (C++ enum variant: NoUnderline = 0)

pub const SingleUnderline: UnderlineStyle[src]

A line is drawn using Qt::SolidLine. (C++ enum variant: SingleUnderline = 1)

pub const DashUnderline: UnderlineStyle[src]

Dashes are drawn using Qt::DashLine. (C++ enum variant: DashUnderline = 2)

pub const DotLine: UnderlineStyle[src]

Dots are drawn using Qt::DotLine; (C++ enum variant: DotLine = 3)

pub const DashDotLine: UnderlineStyle[src]

Dashs and dots are drawn using Qt::DashDotLine. (C++ enum variant: DashDotLine = 4)

pub const DashDotDotLine: UnderlineStyle[src]

Underlines draw drawn using Qt::DashDotDotLine. (C++ enum variant: DashDotDotLine = 5)

pub const WaveUnderline: UnderlineStyle[src]

The text is underlined using a wave shaped line. (C++ enum variant: WaveUnderline = 6)

pub const SpellCheckUnderline: UnderlineStyle[src]

The underline is drawn depending on the QStyle::SH_SpellCeckUnderlineStyle style hint of the QApplication style. By default this is mapped to WaveUnderline, on macOS it is mapped to DashDotLine. (C++ enum variant: SpellCheckUnderline = 7)

Trait Implementations

impl Clone for UnderlineStyle[src]

impl Copy for UnderlineStyle[src]

impl Debug for UnderlineStyle[src]

impl Eq for UnderlineStyle[src]

impl From<UnderlineStyle> for c_int[src]

impl From<i32> for UnderlineStyle[src]

impl PartialEq<UnderlineStyle> for UnderlineStyle[src]

impl StructuralEq for UnderlineStyle[src]

impl StructuralPartialEq for UnderlineStyle[src]

Auto Trait Implementations

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, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.