The ISize class uses its coordinates to represent a rectangular size, in horizontal and vertical dimensions.
You can also construct objects of this class using the following:
Constructors & DestructorYou can construct, copy, and assign objects of this class. This class uses the compiler-generated copy constructor and assignment operator to copy and assign ISize objects.
![]() |
public:
ISize(const IPair& pair)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
ISize(Coord width, Coord height)
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
ISize(const SIZEL& sizl)
| Windows | OS/2 | AIX |
| Yes | Yes | No |
public:
ISize()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
ISize(const struct _RECTL& rcl)
| Windows | OS/2 | AIX |
| Yes | Yes | No |
ConversionsUse these members to return an ISize object in a different form.
![]() |
public:
SIZEL asSIZEL() const
Returns the ISize as a Presentation Manager Toolkit SIZEL structure.
| Windows | OS/2 | AIX |
| Yes | Yes | No |
CoordinatesUse these members to query and change the ordered pair of integers in an ISize object.
![]() |
public:
Coord height() const
Returns the height represented by the ISize object.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
ISize& setHeight(Coord cy)
Sets the size's height.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
ISize& setWidth(Coord cx)
Sets the size's width.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
Coord width() const
Returns the width represented by the ISize object.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
IString asDebugInfo() const
IString asString() const
Coord coord1() const
Coord coord2() const
double distanceFrom(const IPair& aPair) const
long dotProduct(const IPair& aPair) const
IPair(Coord init)
IPair()
IPair(Coord coord1, Coord coord2)
IPair maximum(const IPair& aPair) const
IPair minimum(const IPair& aPair) const
bool operator !=(const IPair& aPair) const
IPair& operator %=(const IPair& aPair)
IPair& operator %=(long divisor)
IPair& operator *=(double multiplier)
IPair& operator *=(const IPair& aPair)
IPair& operator +=(const IPair& aPair)
IPair operator -() const
IPair& operator -=(const IPair& aPair)
IPair& operator /=(double divisor)
IPair& operator /=(const IPair& aPair)
bool operator <(const IPair& aPair) const
bool operator <=(const IPair& aPair) const
bool operator ==(const IPair& aPair) const
bool operator >(const IPair& aPair) const
bool operator >=(const IPair& aPair) const
IPair& scaleBy(double xFactor, double yFactor)
IPair scaledBy(double xFactor, double yFactor) const
IPair& setCoord1(Coord coord1)
IPair& setCoord2(Coord coord2)
IPair& transpose()