xrectangle Class Reference

BASE CLASS FOR RECTANGLES. More...

#include <Zclassut.h>

List of all members.

Public Member Functions

void Set (int xLeft, int yTop, int xRight, int yBottom)
bool isEmpty (void)
void toClient (HWND hWnd)

Detailed Description

BASE CLASS FOR RECTANGLES.

Applications use rectangles to specify rectangular areas on the screen or in a window. Rectangles are used for the cursor clipping region, the invalid portion of the client area, an area for displaying formatted text, or the scroll area. Your applications can also use rectangles to fill, frame, or invert a portion of the client area with a given brush, and to retrieve the coordinates of a window or a window's client area.


Member Function Documentation

bool xrectangle::isEmpty ( void   )  [inline]

Determines whether the rectangle is empty. A empty rectangle is one that has no area; that is, the coordinate of the right side is less than or equal to the coordinate of the left side, or the coordinate of the bottom side is less than or equal to the coordinate of the top side. If the rectangle is empty, the return value is true.

void xrectangle::Set ( int  xLeft,
int  yTop,
int  xRight,
int  yBottom 
) [inline]

Sets the coordinates of the rectangle. This is equivalent to assigning the left, top, right, and bottom arguments to the appropriate members of the class.

Parameters:
xLeft - Specifies the x-coordinate of the rectangle's upper-left corner.
yTop - Specifies the y-coordinate of the rectangle's upper-left corner.
xRight - Specifies the x-coordinate of the rectangle's lower-right corner.
yBottom - Specifies the y-coordinate of the rectangle's lower-right corner.
void xrectangle::toClient ( HWND  hWnd  )  [inline]

Converts the screen coordinates of a specified rectangle on the screen to client coordinates of a specified window.


The documentation for this class was generated from the following file:

Generated on Sun Nov 29 07:22:16 2009 for Rad.on++ by  doxygen 1.6.1