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]

[src]

Returns the component of v corresponding to this orientation.

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

[src]

Returns the other orientation.

[src]

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

[src]

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)).

[src]

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

Trait Implementations

impl Clone for Orientation
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Orientation
[src]

impl Debug for Orientation
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Orientation
[src]

[src]

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

1.0.0
[src]

This method tests for !=.