Struct nanovg::Alignment
[−]
[src]
pub struct Alignment(_);
Methods
impl Alignment
[src]
pub fn new() -> Self
[src]
Create a new top-left alignment.
pub fn left(self) -> Self
[src]
Set the horizontal alignment to left.
pub fn center(self) -> Self
[src]
Set the horizontal alignment to center.
pub fn right(self) -> Self
[src]
Set the horizontal alignment to right.
pub fn top(self) -> Self
[src]
Set the vertical alignment to top.
pub fn middle(self) -> Self
[src]
Set the vertical alignment to middle.
pub fn bottom(self) -> Self
[src]
Set the vertical alignment to bottom.
pub fn baseline(self) -> Self
[src]
Set the vertical alignment to baseline.
Trait Implementations
impl Copy for Alignment
[src]
impl Clone for Alignment
[src]
fn clone(&self) -> Alignment
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more