initFromRect

fun initFromRect(bounds: <Error class: unknown class>, radius: <Error class: unknown class>): RoundedRect

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

Return

the initialized rectangle

Parameters

bounds

a graphene_rect_t

radius

the border radius