Rect.roundToPixel

Rounds the origin and the size of the given rectangle to their nearest integer values; the rounding is guaranteed to be large enough to contain the original rectangle.

More...
class Rect
roundToPixel
()

Return Value

Type: graphene.rect.Rect

the pixel-aligned rectangle.

Detailed Description

Deprecated: Use graphene.rect.Rect.round instead