init_from_rect


Description:

public unowned RoundedRect? init_from_rect (Rect bounds, float radius)

Initializes a rounded rectangle to the given bounds and sets the radius of all four corners equally.

Parameters:

this

the rounded rectangle to initialize

bounds

a `graphene_rect_t`

radius

the border radius

Returns:

the initialized rounded rectangle