init_from_rect


Description:

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

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

Parameters:

this

a `GskRoundedRect`

bounds

a `graphene_rect_t`

radius

the border radius

Returns:

the initialized rectangle