/// Rectangle in compositor-window coordinates.
#[derive(Debug, Clone, Copy, PartialEq)]pubstructRect{/// Left edge of the rectangle.
pubx:f64,
/// Top edge of the rectangle.
puby:f64,
/// Rectangle width.
pubwidth:f64,
/// Rectangle height.
pubheight:f64,
}implRect{/// Create a new rectangle from origin and size values.
pubconstfnnew(x:f64, y:f64, width:f64, height:f64)->Self{Self{
x,
y,
width,
height,}}}