Rect.init_

Initializes the given #graphene_rect_t with the given values.

This function will implicitly normalize the #graphene_rect_t before returning.

class Rect
init_
(
float x
,
float y
,
float width
,
float height
)

Parameters

x float

the X coordinate of the graphene_rect_t.origin

y float

the Y coordinate of the graphene_rect_t.origin

width float

the width of the graphene_rect_t.size

height float

the height of the graphene_rect_t.size

Return Value

Type: graphene.rect.Rect

the initialized rectangle