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

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

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]

[src]

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

Trait Implementations

impl PartialEq for Offset
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Offset
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Offset
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Offset

impl Sync for Offset