Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_ClipRect Class Reference

also: CL_Display - The DisplayCard wrapper class.also: CL_DisplayCard - The DisplayCard class. More...

#include <cliprect.h>

List of all members.

Public Methods

 CL_ClipRect ()
 CL_ClipRect (const CL_ClipRect &rect)
 CL_ClipRect (int x1, int y1, int x2, int y2)
bool test_clipped (const CL_ClipRect &rect) const
 param: (x1,y1) - Upper left corner of the rectangle.param: (x2,y2) - Lower right corner of the rectangle (not included).

bool test_unclipped (const CL_ClipRect &rect) const
 param: rect - The rectangle to be tested.retval: True if the passed rectangle needs to be clipped.

bool test_all_clipped (const CL_ClipRect &rect) const
 param: rect - The rectangle to be tested.retval: True if the passed rectangle is contained within this rectangle.

CL_ClipRect clip (const CL_ClipRect &rect) const
 param: rect - The rectangle to be tested.retval: True if the entire specified rect is outside this rectangle.

bool operator== (const CL_ClipRect &rect) const
 param: rect - The rectangle to be clipped.retval: The clipped rectangle.


Public Attributes

int m_x1
int m_y1
int m_x2
int m_y2


Detailed Description

also: CL_Display - The DisplayCard wrapper class.also: CL_DisplayCard - The DisplayCard class.

Definition at line 20 of file cliprect.h.


Constructor & Destructor Documentation

CL_ClipRect::CL_ClipRect ( )
 

CL_ClipRect::CL_ClipRect ( const CL_ClipRect & rect )
 

CL_ClipRect::CL_ClipRect ( int x1,
int y1,
int x2,
int y2 )
 


Member Function Documentation

CL_ClipRect CL_ClipRect::clip ( const CL_ClipRect & rect ) const
 

param: rect - The rectangle to be tested.retval: True if the entire specified rect is outside this rectangle.

Referenced by cl_fill_rect_opaque(), CL_DisplayCard_Generic::push_clip_rect(), and toluaI_CL_ClipRect_clip0().

bool CL_ClipRect::operator== ( const CL_ClipRect & rect ) const
 

param: rect - The rectangle to be clipped.retval: The clipped rectangle.

bool CL_ClipRect::test_all_clipped ( const CL_ClipRect & rect ) const
 

param: rect - The rectangle to be tested.retval: True if the passed rectangle is contained within this rectangle.

Referenced by cl_fill_rect_opaque(), and toluaI_CL_ClipRect_test_all_clipped0().

bool CL_ClipRect::test_clipped ( const CL_ClipRect & rect ) const
 

param: (x1,y1) - Upper left corner of the rectangle.param: (x2,y2) - Lower right corner of the rectangle (not included).

Referenced by toluaI_CL_ClipRect_test_clipped0().

bool CL_ClipRect::test_unclipped ( const CL_ClipRect & rect ) const
 

param: rect - The rectangle to be tested.retval: True if the passed rectangle needs to be clipped.

Referenced by toluaI_CL_ClipRect_test_unclipped0().


Member Data Documentation

int CL_ClipRect::m_x1
 

Definition at line 33 of file cliprect.h.

int CL_ClipRect::m_x2
 

Definition at line 39 of file cliprect.h.

int CL_ClipRect::m_y1
 

Definition at line 36 of file cliprect.h.

int CL_ClipRect::m_y2
 

Definition at line 42 of file cliprect.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:56:45 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001