Rect.init_

graphene.rect.Rect init_(float x, float y, float width, float height)

Initializes the given #graphene_rect_t with the given values.

This function will implicitly normalize the #graphene_rect_t before returning.

Parameters

xthe X coordinate of the graphene_rect_t.origin
ythe Y coordinate of the graphene_rect_t.origin
widththe width of the graphene_rect_t.size
heightthe height of the graphene_rect_t.size

Returns

the initialized rectangle