Struct immi::Alignment [] [src]

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

Represents the alignment of a viewport.

Fields

The horizontal alignment.

The vertical alignment.

Methods

impl Alignment
[src]

Shortcut for (center, center).

Shortcut for (center, bottom).

Shortcut for (center, top).

Shortcut for (right, center).

Shortcut for (left, center).

Shortcut for (left, top).

Shortcut for (right, top).

Shortcut for (right, bottom).

Shortcut for (left, bottom).

Trait Implementations

impl Eq for Alignment
[src]

impl PartialEq for Alignment
[src]

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

This method tests for !=.

impl Debug for Alignment
[src]

Formats the value using the given formatter.

impl Clone for Alignment
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Alignment
[src]