Size Class

The Size class encapsulates a Width and Height dimension in a 2-D coordinate system.

Size has these types of members:

Constructors

The Size class has these constructors.
Constructor Description
Size::Size() Creates a new Size object and initializes the members to zero. This is the default constructor.
Size::Size(INT,INT) Creates a Size object and initializes its Width and Height data members.
Size::Size(Size&) Creates a Size object and initializes its members by copying the members of another Size object.
 

Methods

The Size class has these methods.
Method Description
Size::Empty The Size::Empty method determines whether a Size object is empty.
Size::Equals The Size::Equals method determines whether two Size objects are equal.
Size::operator-(Size&) The Size::operator- method subtracts the Width and Height data members of two Size objects.
Size::operator+(Size&) The Size::operator+ method adds the Width and Height data members of two Size objects.

Methods

The Size class has these methods.

Method Description
Size::Empty The Size::Empty method determines whether a Size object is empty.
Size::Equals The Size::Equals method determines whether two Size objects are equal.
Size::Size Creates a new Size object and initializes the members to zero. This is the default constructor.
Size::Size Creates a Size object and initializes its members by copying the members of another Size object.
Size::Size Creates a Size object and initializes its Width and Height data members.
Size::operator- The Size::operator- method subtracts the Width and Height data members of two Size objects.
Size::operator+ The Size::operator+ method adds the Width and Height data members of two Size objects.

Requirements

   
Target Platform Windows
Header gdiplustypes.h