RoundedRect.initFromRect

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

class RoundedRect
initFromRect

Parameters

bounds Rect

a graphene_rect_t

radius float

the border radius

Return Value

the initialized rectangle

Meta