Struct tui::layout::Rect [] [src]

pub struct Rect {
    pub x: u16,
    pub y: u16,
    pub width: u16,
    pub height: u16,
}

A simple rectangle used in the computation of the layout and to give widgets an hint about the area they are supposed to render to.

Fields

Methods

impl Rect
[src]

Trait Implementations

impl Debug for Rect
[src]

Formats the value using the given formatter.

impl Clone for Rect
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Rect
[src]

impl Hash for Rect
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl PartialEq for Rect
[src]

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

This method tests for !=.

impl Eq for Rect
[src]

impl Default for Rect
[src]

Returns the "default value" for a type. Read more