Enum glyph_brush_layout::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 Debug for HorizontalAlign
[src]
impl Debug for HorizontalAlign
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. 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 Copy for HorizontalAlign
[src]
impl Copy for HorizontalAlign
impl PartialEq for HorizontalAlign
[src]
impl PartialEq for HorizontalAlign
fn eq(&self, other: &HorizontalAlign) -> bool
[src]
fn eq(&self, other: &HorizontalAlign) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for HorizontalAlign
[src]
impl Eq for HorizontalAlign
impl Hash for HorizontalAlign
[src]
impl Hash for HorizontalAlign
Auto Trait Implementations
impl Send for HorizontalAlign
impl Send for HorizontalAlign
impl Sync for HorizontalAlign
impl Sync for HorizontalAlign