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

messages.c

Go to the documentation of this file.
00001 /**********************************************************************
00002 * FILE: messages.c
00003 * AUTHOR: CAL
00004 * DATE: 18 April 1993
00005 * PURPOSE:
00006 *   Messages are used to represent mouse and keyboard events, as
00007 *   well as to inform control functions of event that occur at
00008 *   the GUI level, for example, the pressing of a button.
00009 ***********************************************************************/
00010 
00011 #include <string.h>
00012 #include "messages.h"
00013 
00014 Message NullMsg;
00015 Message Acknowledged (Unknown, Acknowledgement);
00016 
00017 
00018 bool Message::operator == (Message& msg)
00019 {
00020   if ((origin == msg.origin)  &&
00021       (code == msg.code)  &&
00022       (d1 == msg.d1)    &&
00023       (d2 == msg.d2)    &&
00024       (!strcmp (str, msg.str)))
00025     return True;
00026   else
00027     return False;
00028 }
00029 
00030 

Generated on Sun Jul 6 23:07:15 2003 for Scotland Yard by doxygen1.2.15