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