SizeI Class Reference

#include <Pt/Gfx/Size.h>

Integer width and height. More...

Public Member Functions

Int area () const
 Returns the area (width * height).
void transpose ()
 Swaps width and height in place.
SizeI toTransposed () const
 Returns a copy with width and height swapped.

Detailed Description

SizeI is the integer counterpart of Size. Image width and height, and rounded drawing sizes, use this type. Widen it to Size when a painter needs a floating-point extent.

Arithmetic matches Size but uses Int. There is no rounding API on this type: rounding is how a Size becomes a SizeI.