Enum rich_sdl2_rust::ttf::font::pen::TextAlignX
source · pub enum TextAlignX {
Left,
Center,
Right,
}
Expand description
X-axis alignment of the text.
Variants§
Left
Aligns to the left. Moves the text to the right so that the pivot comes the left edge.
Center
Aligns to the center.
Right
Aligns to the right. Moves the text to the left so that the pivot comes the right edge.
Trait Implementations§
source§impl Clone for TextAlignX
impl Clone for TextAlignX
source§fn clone(&self) -> TextAlignX
fn clone(&self) -> TextAlignX
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 TextAlignX
impl Debug for TextAlignX
source§impl Default for TextAlignX
impl Default for TextAlignX
source§impl Hash for TextAlignX
impl Hash for TextAlignX
source§impl PartialEq for TextAlignX
impl PartialEq for TextAlignX
source§fn eq(&self, other: &TextAlignX) -> bool
fn eq(&self, other: &TextAlignX) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TextAlignX
impl Eq for TextAlignX
impl StructuralPartialEq for TextAlignX
Auto Trait Implementations§
impl RefUnwindSafe for TextAlignX
impl Send for TextAlignX
impl Sync for TextAlignX
impl Unpin for TextAlignX
impl UnwindSafe for TextAlignX
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