Enum gfx_text::HorizontalAnchor
source · pub enum HorizontalAnchor {
Left,
Center,
Right,
}
Expand description
An anchor aligns text horizontally to its given x position.
Variants§
Left
Anchor the left edge of the text
Center
Anchor the horizontal mid-point of the text
Right
Anchor the right edge of the text
Trait Implementations§
source§impl PartialEq for HorizontalAnchor
impl PartialEq for HorizontalAnchor
source§fn eq(&self, other: &HorizontalAnchor) -> bool
fn eq(&self, other: &HorizontalAnchor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HorizontalAnchor
Auto Trait Implementations§
impl RefUnwindSafe for HorizontalAnchor
impl Send for HorizontalAnchor
impl Sync for HorizontalAnchor
impl Unpin for HorizontalAnchor
impl UnwindSafe for HorizontalAnchor
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