Enum ggez::graphics::HorizontalAlign [−][src]
pub enum HorizontalAlign { Left, Center, Right, }
Describes horizontal alignment preference for positioning & bounds.
Variants
Left
Leftmost character is immediately to the right of the render position.
Bounds start from the render position and advance rightwards.
Center
Leftmost & rightmost characters are equidistant to the render position.
Bounds start from the render position and advance equally left & right.
Right
Rightmost character is immetiately to the left of the render position.
Bounds start from the render position and advance leftwards.
Trait Implementations
impl Hash for HorizontalAlign
[src]
impl Hash for HorizontalAlign
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for HorizontalAlign
[src]
impl Clone for HorizontalAlign
fn clone(&self) -> HorizontalAlign
[src]
fn clone(&self) -> HorizontalAlign
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for HorizontalAlign
[src]
impl Debug for HorizontalAlign
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Copy for HorizontalAlign
[src]
impl Copy for HorizontalAlign
impl Eq for HorizontalAlign
[src]
impl Eq for HorizontalAlign
impl PartialEq<HorizontalAlign> for HorizontalAlign
[src]
impl PartialEq<HorizontalAlign> for HorizontalAlign
Auto Trait Implementations
impl Send for HorizontalAlign
impl Send for HorizontalAlign
impl Sync for HorizontalAlign
impl Sync for HorizontalAlign