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

CL_Rect Class Reference

clanCore="Math". More...

#include <rect.h>

List of all members.

Public Methods

 CL_Rect ()
 CL_Rect (int nx1, int ny1, int nx2, int ny2)
 CL_Rect (const CL_Rect &rect)
bool operator== (const CL_Rect &rect) const
void move (int delta_x, int delta_y)
bool inside (int x, int y) const
int get_width () const
int get_height () const

Public Attributes

int x1
int y1
int x2
int y2

Static Public Methods

CL_Rect center (int center_x, int center_y, int width, int height)
CL_Rect left (int x, int y, int width, int height, bool center_vert=true)
CL_Rect right (int x, int y, int width, int height, bool center_vert=true)


Detailed Description

clanCore="Math".

Definition at line 24 of file rect.h.


Constructor & Destructor Documentation

CL_Rect::CL_Rect ( ) [inline]
 

Definition at line 31 of file rect.h.

Referenced by center(), left(), and right().

CL_Rect::CL_Rect ( int nx1,
int ny1,
int nx2,
int ny2 ) [inline]
 

Definition at line 32 of file rect.h.

CL_Rect::CL_Rect ( const CL_Rect & rect ) [inline]
 

Definition at line 34 of file rect.h.


Member Function Documentation

CL_Rect CL_Rect::center ( int center_x,
int center_y,
int width,
int height ) [inline, static]
 

Definition at line 42 of file rect.h.

int CL_Rect::get_height ( ) const [inline]
 

Definition at line 85 of file rect.h.

Referenced by cl_min().

int CL_Rect::get_width ( ) const [inline]
 

Definition at line 84 of file rect.h.

Referenced by cl_min().

bool CL_Rect::inside ( int x,
int y ) const [inline]
 

Definition at line 79 of file rect.h.

CL_Rect CL_Rect::left ( int x,
int y,
int width,
int height,
bool center_vert = true ) [inline, static]
 

Definition at line 51 of file rect.h.

void CL_Rect::move ( int delta_x,
int delta_y ) [inline]
 

Definition at line 71 of file rect.h.

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

CL_Rect CL_Rect::right ( int x,
int y,
int width,
int height,
bool center_vert = true ) [inline, static]
 

Definition at line 60 of file rect.h.


Member Data Documentation

int CL_Rect::x1
 

Definition at line 27 of file rect.h.

int CL_Rect::x2
 

Definition at line 28 of file rect.h.

int CL_Rect::y1
 

Definition at line 27 of file rect.h.

int CL_Rect::y2
 

Definition at line 28 of file rect.h.


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