RoundedRect.initFromRect

Initializes self to the given bounds and sets the radius of all four corners to radius.

class RoundedRect
initFromRect

Parameters

bounds graphene.rect.Rect
radius float

the border radius

Return Value

Type: gsk.rounded_rect.RoundedRect

the initialized rectangle