init

fun init(x: <Error class: unknown class>, y: <Error class: unknown class>, width: <Error class: unknown class>, height: <Error class: unknown class>): Rect

Initializes the given #graphene_rect_t with the given values.

This function will implicitly normalize the #graphene_rect_t before returning.

Return

the initialized rectangle

Since

1.0

Parameters

x

the X coordinate of the @graphene_rect_t.origin

y

the Y coordinate of the @graphene_rect_t.origin

width

the width of the @graphene_rect_t.size

height

the height of the @graphene_rect_t.size