Mtk.Rectangle
Description: Reference for Mtk.Rectangle

### Struct

# MtkRectangle

since: 13

#### Description

    struct MtkRectangle {
      int x;
      int y;
      int width;
      int height;
    }

No description available.

###### Structure members

`x`

  X coordinate of the top-left corner.

`y`

  Y coordinate of the top-left corner.

`width`

  Width of the rectangle.

`height`

  Height of the rectangle.

Available since: 13

#### Constructors

###### mtk_rectangle_new

Creates a new rectangle.

since: 13

#### Functions

###### mtk_rectangle_from_graphene_rect

No description available.

since: 13

#### Instance methods

###### mtk_rectangle_area

No description available.

since: 13

###### mtk_rectangle_contains_rect

No description available.

since: 13

###### mtk_rectangle_copy

No description available.

since: 13

###### mtk_rectangle_could_fit_rect

No description available.

since: 13

###### mtk_rectangle_equal

Compares the two rectangles.

since: 13

###### mtk_rectangle_free

No description available.

since: 13

###### mtk_rectangle_horiz_overlap

Similar to `mtk_rectangle_overlap()` but ignores the vertical location.

since: 13

###### mtk_rectangle_intersect

Find the intersection between the two rectangles.

since: 13

###### mtk_rectangle_overlap

Similar to `mtk_rectangle_intersect()` but doesn’t provide the location of the intersection.

since: 13

###### mtk_rectangle_to_graphene_rect

No description available.

since: 13

###### mtk_rectangle_union

Computes the union of the two rectangles.

since: 13

###### mtk_rectangle_vert_overlap

Similar to `mtk_rectangle_overlap()` but ignores the horizontal location.

since: 13