RoundedRect.initFromRect

gsk.rounded_rect.RoundedRect initFromRect(graphene.rect.Rect bounds, float radius) nothrow

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

Parameters

boundsa graphene.rect.Rect
radiusthe border radius

Returns

the initialized rectangle