Enum fontdue::layout::VerticalAlign
source · pub enum VerticalAlign {
Top,
Middle,
Bottom,
}
Expand description
Vertical alignment options for text when a max_height is provided.
Variants§
Top
Aligns text to the top of the region defined by the max_height.
Middle
Aligns text to the middle of the region defined by the max_height.
Bottom
Aligns text to the bottom of the region defined by the max_height.
Trait Implementations§
source§impl Clone for VerticalAlign
impl Clone for VerticalAlign
source§fn clone(&self) -> VerticalAlign
fn clone(&self) -> VerticalAlign
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq<VerticalAlign> for VerticalAlign
impl PartialEq<VerticalAlign> for VerticalAlign
source§fn eq(&self, other: &VerticalAlign) -> bool
fn eq(&self, other: &VerticalAlign) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.