pub enum Align {
Left,
Center,
Right,
}
Expand description
Describes the horizontal alignment preference for positioning & bounds.
See gfx_glyph::HorizontalAlign
for more.
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 immediately to the left of the render position. Bounds start from the render position and advance leftwards.
Trait Implementations
impl Copy for Align
impl Eq for Align
impl StructuralEq for Align
impl StructuralPartialEq for Align
Auto Trait Implementations
impl RefUnwindSafe for Align
impl Send for Align
impl Sync for Align
impl Unpin for Align
impl UnwindSafe for Align
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.