Struct qt_gui::q_text_char_format::UnderlineStyle
source · pub struct UnderlineStyle(/* private fields */);
Expand description
This enum describes the different ways drawing underlined text.
C++ enum: QTextCharFormat::UnderlineStyle
.
This enum describes the different ways drawing underlined text.
See also Qt::PenStyle.
Implementations§
source§impl UnderlineStyle
impl UnderlineStyle
sourcepub const NoUnderline: UnderlineStyle = _
pub const NoUnderline: UnderlineStyle = _
Text is draw without any underlining decoration. (C++ enum variant: NoUnderline = 0
)
sourcepub const SingleUnderline: UnderlineStyle = _
pub const SingleUnderline: UnderlineStyle = _
A line is drawn using Qt::SolidLine. (C++ enum variant: SingleUnderline = 1
)
sourcepub const DashUnderline: UnderlineStyle = _
pub const DashUnderline: UnderlineStyle = _
Dashes are drawn using Qt::DashLine. (C++ enum variant: DashUnderline = 2
)
sourcepub const DotLine: UnderlineStyle = _
pub const DotLine: UnderlineStyle = _
Dots are drawn using Qt::DotLine; (C++ enum variant: DotLine = 3
)
sourcepub const DashDotLine: UnderlineStyle = _
pub const DashDotLine: UnderlineStyle = _
Dashs and dots are drawn using Qt::DashDotLine. (C++ enum variant: DashDotLine = 4
)
sourcepub const DashDotDotLine: UnderlineStyle = _
pub const DashDotDotLine: UnderlineStyle = _
Underlines draw drawn using Qt::DashDotDotLine. (C++ enum variant: DashDotDotLine = 5
)
sourcepub const WaveUnderline: UnderlineStyle = _
pub const WaveUnderline: UnderlineStyle = _
The text is underlined using a wave shaped line. (C++ enum variant: WaveUnderline = 6
)
sourcepub const SpellCheckUnderline: UnderlineStyle = _
pub const SpellCheckUnderline: UnderlineStyle = _
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§
source§impl Clone for UnderlineStyle
impl Clone for UnderlineStyle
source§fn clone(&self) -> UnderlineStyle
fn clone(&self) -> UnderlineStyle
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UnderlineStyle
impl Debug for UnderlineStyle
source§impl From<UnderlineStyle> for c_int
impl From<UnderlineStyle> for c_int
source§fn from(value: UnderlineStyle) -> Self
fn from(value: UnderlineStyle) -> Self
source§impl From<i32> for UnderlineStyle
impl From<i32> for UnderlineStyle
source§impl PartialEq for UnderlineStyle
impl PartialEq for UnderlineStyle
source§fn eq(&self, other: &UnderlineStyle) -> bool
fn eq(&self, other: &UnderlineStyle) -> bool
self
and other
values to be equal, and is used
by ==
.