Description

A rectangle in pixel dimensions.

Since 1.22

Fields

  • x - X coordinate of the rectangle, from the top-left corner.
  • y - Y coordinate of the rectangle, from the top-left corner.
  • w - Width of the rectangle in pixels.
  • h - Height of the rectangle in pixels.

Signature

struct @extern @free(eina_rectangle_free) Eina.Rect {
    x: int;
    y: int;
    w: int;
    h: int;
}

C signature

typedef struct _Eina_Rect {
    int x;
    int y;
    int w;
    int h;
} Eina_Rect;