Method

AstalWlRectanglenormalize

Declaration

void
astal_wl_rectangle_normalize (
  AstalWlRectangle* self
)

Description

Normalizes the rectangle to ensure positive width and height. If width or height are negative, adjusts the origin (x,y) so the rectangle always represents a valid region with top-left origin and positive extent.

Parameters

self

Type: AstalWlRectangle

No description available.

The argument can be NULL.