Rect.Rect constructors
This topic lists the constructors of the Rect class. For a complete class listing, see Rect Class.
Overload list
Constructor | Description |
---|---|
Rect(Point&,Size&) | Creates a Rect object by using a Point object to initialize the X and Y data members and a Size object to initialize the Width and Height data members. |
Rect(INT,INT,INT,INT) | Creates a Rect object by using four integers to initialize the X, Y, Width, and Height data members. |
Rect() | Creates a Rect object whose x-coordinate, y-coordinate, width, and height are all zero. This is the default constructor. |