Struct qt_gui::q_text_block_format::LineHeightTypes
source · pub struct LineHeightTypes(/* private fields */);
Expand description
This enum describes the various types of line spacing support paragraphs can have.
C++ enum: QTextBlockFormat::LineHeightTypes
.
This enum describes the various types of line spacing support paragraphs can have.
This enum was introduced or modified in Qt 4.8.
See also lineHeight(), lineHeightType(), and setLineHeight().
Implementations§
source§impl LineHeightTypes
impl LineHeightTypes
sourcepub const SingleHeight: LineHeightTypes = _
pub const SingleHeight: LineHeightTypes = _
This is the default line height: single spacing. (C++ enum variant: SingleHeight = 0
)
sourcepub const ProportionalHeight: LineHeightTypes = _
pub const ProportionalHeight: LineHeightTypes = _
This sets the spacing proportional to the line (in percentage). For example, set to 200 for double spacing. (C++ enum variant: ProportionalHeight = 1
)
sourcepub const FixedHeight: LineHeightTypes = _
pub const FixedHeight: LineHeightTypes = _
This sets the line height to a fixed line height (in pixels). (C++ enum variant: FixedHeight = 2
)
sourcepub const MinimumHeight: LineHeightTypes = _
pub const MinimumHeight: LineHeightTypes = _
This sets the minimum line height (in pixels). (C++ enum variant: MinimumHeight = 3
)
sourcepub const LineDistanceHeight: LineHeightTypes = _
pub const LineDistanceHeight: LineHeightTypes = _
This adds the specified height between lines (in pixels). (C++ enum variant: LineDistanceHeight = 4
)
Trait Implementations§
source§impl Clone for LineHeightTypes
impl Clone for LineHeightTypes
source§fn clone(&self) -> LineHeightTypes
fn clone(&self) -> LineHeightTypes
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LineHeightTypes
impl Debug for LineHeightTypes
source§impl From<LineHeightTypes> for c_int
impl From<LineHeightTypes> for c_int
source§fn from(value: LineHeightTypes) -> Self
fn from(value: LineHeightTypes) -> Self
source§impl From<i32> for LineHeightTypes
impl From<i32> for LineHeightTypes
source§impl PartialEq for LineHeightTypes
impl PartialEq for LineHeightTypes
source§fn eq(&self, other: &LineHeightTypes) -> bool
fn eq(&self, other: &LineHeightTypes) -> bool
self
and other
values to be equal, and is used
by ==
.