Struct qt_core::q_text_stream::FieldAlignment
source · pub struct FieldAlignment(/* private fields */);
Expand description
This enum specifies how to align text in fields when the field is wider than the text that occupies it.
C++ enum: QTextStream::FieldAlignment
.
This enum specifies how to align text in fields when the field is wider than the text that occupies it.
See also setFieldAlignment().
Implementations§
source§impl FieldAlignment
impl FieldAlignment
sourcepub const AlignLeft: FieldAlignment = _
pub const AlignLeft: FieldAlignment = _
Pad on the right side of fields. (C++ enum variant: AlignLeft = 0
)
sourcepub const AlignRight: FieldAlignment = _
pub const AlignRight: FieldAlignment = _
Pad on the left side of fields. (C++ enum variant: AlignRight = 1
)
sourcepub const AlignCenter: FieldAlignment = _
pub const AlignCenter: FieldAlignment = _
Pad on both sides of field. (C++ enum variant: AlignCenter = 2
)
sourcepub const AlignAccountingStyle: FieldAlignment = _
pub const AlignAccountingStyle: FieldAlignment = _
Same as AlignRight, except that the sign of a number is flush left. (C++ enum variant: AlignAccountingStyle = 3
)
Trait Implementations§
source§impl Clone for FieldAlignment
impl Clone for FieldAlignment
source§fn clone(&self) -> FieldAlignment
fn clone(&self) -> FieldAlignment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FieldAlignment
impl Debug for FieldAlignment
source§impl From<FieldAlignment> for c_int
impl From<FieldAlignment> for c_int
source§fn from(value: FieldAlignment) -> Self
fn from(value: FieldAlignment) -> Self
Converts to this type from the input type.
source§impl From<i32> for FieldAlignment
impl From<i32> for FieldAlignment
source§impl PartialEq for FieldAlignment
impl PartialEq for FieldAlignment
source§fn eq(&self, other: &FieldAlignment) -> bool
fn eq(&self, other: &FieldAlignment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FieldAlignment
impl Eq for FieldAlignment
impl StructuralEq for FieldAlignment
impl StructuralPartialEq for FieldAlignment
Auto Trait Implementations§
impl RefUnwindSafe for FieldAlignment
impl Send for FieldAlignment
impl Sync for FieldAlignment
impl Unpin for FieldAlignment
impl UnwindSafe for FieldAlignment
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
Mutably borrows from an owned value. Read more