Enum gfx_glyph::HorizontalAlign [] [src]

pub enum HorizontalAlign {
    Left,
    Center,
    Right,
}

Describes horizontal alignment preference for positioning & bounds.

Variants

Leftmost character is immediately to the right of the render position.
Bounds start from the render position and advance rightwards.

Leftmost & rightmost characters are equidistant to the render position.
Bounds start from the render position and advance equally left & 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]

[src]

Formats the value using the given formatter. Read more

impl Clone for HorizontalAlign
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for HorizontalAlign
[src]

impl PartialEq for HorizontalAlign
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for HorizontalAlign
[src]

impl Hash for HorizontalAlign
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations