pub enum TextVAlign {
Top,
Middle,
Baseline,
Bottom,
}Expand description
Where at sits vertically. Top, Middle and Bottom are edges of the line box (ascent +
descent at the font’s size, the box Toolkit::measure_text reports); Baseline is the
typographic baseline itself.
Variants§
Top
at is the top of the line box.
Middle
at is the vertical middle of the line box.
Baseline
at is the baseline itself: what every native 2-D text call takes, and what a run of labels
sharing a line should align on rather than their individual boxes.
Bottom
at is the bottom of the line box.
Trait Implementations§
Source§impl Clone for TextVAlign
impl Clone for TextVAlign
Source§fn clone(&self) -> TextVAlign
fn clone(&self) -> TextVAlign
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextVAlign
Source§impl Debug for TextVAlign
impl Debug for TextVAlign
Source§impl Default for TextVAlign
impl Default for TextVAlign
Source§fn default() -> TextVAlign
fn default() -> TextVAlign
Returns the “default value” for a type. Read more
impl Eq for TextVAlign
Source§impl PartialEq for TextVAlign
impl PartialEq for TextVAlign
impl StructuralPartialEq for TextVAlign
Auto Trait Implementations§
impl Freeze for TextVAlign
impl RefUnwindSafe for TextVAlign
impl Send for TextVAlign
impl Sync for TextVAlign
impl Unpin for TextVAlign
impl UnsafeUnpin for TextVAlign
impl UnwindSafe for TextVAlign
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more