WinapiExtension
 All Classes Files Functions Variables Typedefs Pages
Public Member Functions | Static Public Member Functions | List of all members
Rect Struct Reference

Windows RECT structure with constructor. More...

#include <rect.h>

Inheritance diagram for Rect:

Public Member Functions

 Rect ()
 
 Rect (LONG x, LONG y, LONG width, LONG height)
 
 Rect (const POINT &topleft, const SIZE &size)
 
 Rect (const POINT &topleft, const POINT &bottomright)
 
 Rect (const RECT &other)
 
RectClientToScreen (HWND window)
 
Size GetSize () const
 
LONG Height () const
 
RectInflate (int dx, int dy)
 
BOOL Intersect (const RECT &r1, const RECT &r2)
 
Rect Intersect (const RECT &other) const
 
BOOL IsEmpty () const
 
RectOffset (int dx, int dy)
 
void operator= (const RECT &other)
 
bool operator== (const RECT &other) const
 
BOOL PtInRect (const POINT &p) const
 
RectScreenToClient (HWND window)
 
void Set (const POINT &topleft, const SIZE &size)
 
void Set (const POINT &topleft, const POINT &bottomright)
 
Point TopLeft () const
 
BOOL Union (const RECT &r1, const RECT &r2)
 
Rect Union (const RECT &other) const
 
LONG Width () const
 

Static Public Member Functions

static Rect DesktopRect ()
 

Detailed Description

Windows RECT structure with constructor.

Constructor & Destructor Documentation

Rect::Rect ( )
inline
Rect::Rect ( const POINT &  topleft,
const SIZE &  size 
)
inline
Rect::Rect ( const POINT &  topleft,
const POINT &  bottomright 
)
inline
Rect::Rect ( const RECT &  other)
inline

Member Function Documentation

Rect& Rect::ClientToScreen ( HWND  window)
inline
static Rect Rect::DesktopRect ( )
inlinestatic

Get the coordinates of the whole desktop.

Size Rect::GetSize ( ) const
inline
LONG Rect::Height ( ) const
inline
Rect& Rect::Inflate ( int  dx,
int  dy 
)
inline
BOOL Rect::Intersect ( const RECT &  r1,
const RECT &  r2 
)
inline
Rect Rect::Intersect ( const RECT &  other) const
inline
BOOL Rect::IsEmpty ( ) const
inline
Rect& Rect::Offset ( int  dx,
int  dy 
)
inline
void Rect::operator= ( const RECT &  other)
inline
bool Rect::operator== ( const RECT &  other) const
inline
BOOL Rect::PtInRect ( const POINT &  p) const
inline
Rect& Rect::ScreenToClient ( HWND  window)
inline
void Rect::Set ( const POINT &  topleft,
const SIZE &  size 
)
inline
void Rect::Set ( const POINT &  topleft,
const POINT &  bottomright 
)
inline
Point Rect::TopLeft ( ) const
inline
BOOL Rect::Union ( const RECT &  r1,
const RECT &  r2 
)
inline
Rect Rect::Union ( const RECT &  other) const
inline
LONG Rect::Width ( ) const
inline

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