Struct immi::Alignment [] [src]

pub struct Alignment {
    pub horizontal: HorizontalAlignment,
    pub vertical: VerticalAlignment,
}

Represents the alignment of a viewport.

Fields

horizontal: HorizontalAlignment

The horizontal alignment.

vertical: VerticalAlignment

The vertical alignment.

Methods

impl Alignment
[src]

fn center() -> Alignment

Shortcut for (center, center).

fn bottom() -> Alignment

Shortcut for (center, bottom).

fn top() -> Alignment

Shortcut for (center, top).

fn right() -> Alignment

Shortcut for (right, center).

fn left() -> Alignment

Shortcut for (left, center).

fn top_left() -> Alignment

Shortcut for (left, top).

fn top_right() -> Alignment

Shortcut for (right, top).

fn bottom_right() -> Alignment

Shortcut for (right, bottom).

fn bottom_left() -> Alignment

Shortcut for (left, bottom).

Trait Implementations

impl Eq for Alignment
[src]

impl PartialEq for Alignment
[src]

fn eq(&self, __arg_0: &Alignment) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Alignment) -> bool

This method tests for !=.

impl Debug for Alignment
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Alignment
[src]

fn clone(&self) -> Alignment

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Alignment
[src]