init


Description:

public unowned Rect? init (float x, float y, float width, float height)

Initializes the given Rect with the given values.

This function will implicitly normalize the Rect before returning.

Parameters:

this

a Rect

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

Returns:

the initialized rectangle