Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

ORECT.H Source File
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

ORECT.H

Go to the documentation of this file.
00001 //Filename    : ORECT.h
00002 //Description : Rect Class Declaration - designed for screen operation
00003 //Owner       : Fred
00004 
00005 #ifndef __ORECT_H
00006 #define __ORECT_H
00007 
00008 //----------- Define class Rect -----//
00009 
00011 class Rect {
00012 public:
00013     short x1, y1, x2, y2;
00014 
00015 public:
00016     Rect()  {;}
00017     Rect(short x1,short y1,short x2,short y2);
00018 
00019     void  clip_me(Rect clipRect);
00020     bool  is_inside(short x, short y);
00021 };
00022 
00023 //----------- Begin of inline function Rect::is_inside --------//
00024 //
00025 inline bool Rect::is_inside(short x, short y) {
00026     return ( x>=x1 && x<=x2 && y>=y1 && y<=y2 );
00027 }
00028 
00029 //------------- End of inline function Rect::is_inside --------//
00030 #endif

Generated on Fri Aug 23 01:38:17 2002 for VirtualU by doxygen1.2.17