Enum cursive::direction::Orientation [] [src]

pub enum Orientation {
    Horizontal,
    Vertical,
}

Describes a vertical or horizontal orientation for a view.

Variants

Horizontal orientation

Vertical orientation

Methods

impl Orientation
[src]

Returns the component of v corresponding to this orientation.

(Horizontal will return the x value, and Vertical will return the y value.)

Returns the other orientation.

Returns a mutable reference to the component of the given vector corresponding to this orientation.

Takes an iterator on sizes, and stack them in the current orientation, returning the size of the required bounding box.

For an horizontal view, returns (Sum(x), Max(y)). For a vertical view, returns (Max(x),Sum(y)).

Creates a new Vec2 with value in self's axis.

Trait Implementations

impl Clone for Orientation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Orientation
[src]

impl Debug for Orientation
[src]

Formats the value using the given formatter.

impl PartialEq for Orientation
[src]

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

This method tests for !=.