Skip to main content

Bounds

Type Alias Bounds 

Source
pub type Bounds = Rect;
Expand description

Bounds alias — Bounds and Rect are used interchangeably. Downstream code may prefer one name or the other.

Aliased Type§

pub struct Bounds {
    pub x: f64,
    pub y: f64,
    pub w: f64,
    pub h: f64,
}

Fields§

§x: f64

Top-left x coordinate in logical points.

§y: f64

Top-left y coordinate in logical points.

§w: f64

Width in logical points (zero or negative = invisible).

§h: f64

Height in logical points (zero or negative = invisible).