vdk 2.4.0
Public Member Functions | Public Attributes | List of all members
VDKRect Class Reference

Provides a simple rectangle object. More...

#include <vdkutils.h>

Public Member Functions

 VDKRect ()
 
 VDKRect (int x, int y, int _w, int _h)
 
 VDKRect (VDKRect &r)
 
 ~VDKRect ()
 
VDKPoint Origin () const
 
int W () const
 
int H () const
 
int Contains (const VDKPoint &point) const
 
int Contains (const VDKRect &r) const
 

Public Attributes

int left
 
int w
 

Detailed Description

Provides a simple rectangle object.

Constructor & Destructor Documentation

§ VDKRect() [1/3]

VDKRect::VDKRect ( )
inline

Constructor makes a null rect

§ VDKRect() [2/3]

VDKRect::VDKRect ( int  x,
int  y,
int  _w,
int  _h 
)
inline

Constructor

Parameters
xleft-upper corner x
left-uppercorner y
_wwidth
_hheight

§ VDKRect() [3/3]

VDKRect::VDKRect ( VDKRect r)
inline

Copy initializer

§ ~VDKRect()

VDKRect::~VDKRect ( )
inline

Destructor

Member Function Documentation

§ Contains() [1/2]

int VDKRect::Contains ( const VDKPoint point) const
inline

Returns 1 if this contains a point

Parameters
pointa point reference

§ Contains() [2/2]

int VDKRect::Contains ( const VDKRect r) const
inline

Returns 1 if this intersect a rect

Parameters
recta rect reference

§ H()

int VDKRect::H ( ) const
inline

Returns rect height

§ Origin()

VDKPoint VDKRect::Origin ( ) const
inline

Returns rect origin

§ W()

int VDKRect::W ( ) const
inline

Returns rect width

Member Data Documentation

§ left

int VDKRect::left

Corners coordinates

§ w

int VDKRect::w

width and height


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