Struct qt_gui::q_text_char_format::VerticalAlignment
source · pub struct VerticalAlignment(/* private fields */);
Expand description
This enum describes the ways that adjacent characters can be vertically aligned.
C++ enum: QTextCharFormat::VerticalAlignment
.
This enum describes the ways that adjacent characters can be vertically aligned.
Implementations§
source§impl VerticalAlignment
impl VerticalAlignment
sourcepub const AlignNormal: VerticalAlignment = _
pub const AlignNormal: VerticalAlignment = _
Adjacent characters are positioned in the standard way for text in the writing system in use. (C++ enum variant: AlignNormal = 0
)
sourcepub const AlignSuperScript: VerticalAlignment = _
pub const AlignSuperScript: VerticalAlignment = _
Characters are placed above the base line for normal text. (C++ enum variant: AlignSuperScript = 1
)
sourcepub const AlignSubScript: VerticalAlignment = _
pub const AlignSubScript: VerticalAlignment = _
Characters are placed below the base line for normal text. (C++ enum variant: AlignSubScript = 2
)
sourcepub const AlignMiddle: VerticalAlignment = _
pub const AlignMiddle: VerticalAlignment = _
The center of the object is vertically aligned with the base line. Currently, this is only implemented for inline objects. (C++ enum variant: AlignMiddle = 3
)
sourcepub const AlignTop: VerticalAlignment = _
pub const AlignTop: VerticalAlignment = _
The top edge of the object is vertically aligned with the base line. (C++ enum variant: AlignTop = 4
)
sourcepub const AlignBottom: VerticalAlignment = _
pub const AlignBottom: VerticalAlignment = _
The bottom edge of the object is vertically aligned with the base line. (C++ enum variant: AlignBottom = 5
)
sourcepub const AlignBaseline: VerticalAlignment = _
pub const AlignBaseline: VerticalAlignment = _
The base lines of the characters are aligned. (C++ enum variant: AlignBaseline = 6
)
Trait Implementations§
source§impl Clone for VerticalAlignment
impl Clone for VerticalAlignment
source§fn clone(&self) -> VerticalAlignment
fn clone(&self) -> VerticalAlignment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VerticalAlignment
impl Debug for VerticalAlignment
source§impl From<VerticalAlignment> for c_int
impl From<VerticalAlignment> for c_int
source§fn from(value: VerticalAlignment) -> Self
fn from(value: VerticalAlignment) -> Self
source§impl From<i32> for VerticalAlignment
impl From<i32> for VerticalAlignment
source§impl PartialEq for VerticalAlignment
impl PartialEq for VerticalAlignment
source§fn eq(&self, other: &VerticalAlignment) -> bool
fn eq(&self, other: &VerticalAlignment) -> bool
self
and other
values to be equal, and is used
by ==
.