Back to index

plt-scheme  4.2.1
wx_sysev.h
Go to the documentation of this file.
00001 /*                                                      -*- C++ -*-
00002  * File:             wx_sysev.h
00003  * Purpose:   System event base declaration
00004  * Author:           Julian Smart
00005  * Created:   1993
00006  * Updated:   
00007  * Copyright: (c) 2004-2009 PLT Scheme Inc.
00008  * Copyright: (c) 1993, AIAI, University of Edinburgh
00009  */
00010 
00011 #ifndef wxb_sysevh
00012 #define wxb_sysevh
00013 
00014 #ifdef __GNUG__
00015 #pragma interface
00016 #endif
00017 
00018 #ifndef wx_xt
00019     // wxWindows standard include mechanism
00020     /* sccsid[] = "@(#)wx_sysev.h  1.2 5/9/94" */
00021 #   include "common.h"
00022 #   include "wx_obj.h"
00023 #   include "wx_types.h"
00024 #endif
00025 
00026 /*
00027  * wxWindows events, covering all interesting things that might happen
00028  * (button clicking, resizing, setting text in widgets, etc.).
00029  *
00030  * For each completely new event type, derive a new event class.
00031  * An event CLASS represents a C++ class defining a range of similar event TYPES;
00032  * examples are canvas events, panel item command events.
00033  * An event TYPE is a unique identifier for a particular system event,
00034  * such as a button press or a listbox deselection.
00035  *
00036  */
00037 
00038 #ifdef IN_CPROTO
00039 typedef       void    *wxEvent ;
00040 #else
00041 
00042 class wxEvent: public wxObject
00043 {
00044  public:
00045   char *eventHandle;         // Handle of an underlying windowing system event
00046   WXTYPE   eventType;
00047   long timeStamp;
00048 
00049   wxEvent(void);
00050   ~wxEvent(void);
00051 
00052   inline WXTYPE GetEventType(void) { return eventType; }
00053   inline virtual long GetTimestamp(void) { return timeStamp; }
00054   virtual void SetTimestamp(long ts = 0);
00055 };
00056 
00057 #endif // IN_CPROTO
00058 #endif // wxb_sysevh