Enum cursive::view::Offset [] [src]

pub enum Offset {
    Center,
    Absolute(usize),
    Parent(usize),
}

Single-dimensional offset policy.

Variants

In the center of the screen

Place top-left corner at the given absolute coordinates

Offset from the previous layer's top-left corner.

If this is the first layer, behaves like Absolute.

Methods

impl Offset
[src]

Computes a single-dimension offset requred to draw a view.

Trait Implementations

impl Clone for Offset
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Offset
[src]

Formats the value using the given formatter.

impl PartialEq for Offset
[src]

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

This method tests for !=.