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