Skip to main content

PxRect

Type Alias PxRect 

Source
pub type PxRect = Rect;
Expand description

A rectangle in console pixels (the logical space before scaling: a cell is its buffer’s ConsoleSpec::cell_px). Same shape as a cell Rect.

Aliased Type§

pub struct PxRect {
    pub x: i32,
    pub y: i32,
    pub w: i32,
    pub h: i32,
}

Fields§

§x: i32

Left column.

§y: i32

Top row.

§w: i32

Width in cells.

§h: i32

Height in cells.