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