home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Club Elmshorn Atari PD
/
CCE_PD.iso
/
pc
/
0400
/
CCE_0423.ZIP
/
CCE_0423.PD
/
GEM.ZOO
/
gemo.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-26
|
720b
|
32 lines
/////////////////////////////////////////////////////////////////////////////
//
// This file is Copyright 1992 by Warwick W. Allison,
// and is freely distributable providing no charge is made.
//
/////////////////////////////////////////////////////////////////////////////
#include "aesbind.h"
#include "gemo.h"
GEMobject::GEMobject(int RSCindex, GEMform* F) :
myindex(RSCindex),
me(&F->Obj[myindex]),
form(F)
{ }
void GEMobject::Redraw()
{
form->RedrawObject(myindex);
}
void GEMobject::touch(int x, int y)
{ }
bool GEMobject::ContainsPoint(int x, int y)
{
int X,Y;
objc_offset(form->Obj,myindex,&X,&Y);
return (x>=X && y>=Y && x<X+me->ob_width && y<Y+me->ob_height);
}