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

init_win32.h

Go to the documentation of this file.
00001 /*
00002         $Id: init_win32.h,v 1.2 2000/07/15 15:45:55 starch Exp $
00003 
00004         ------------------------------------------------------------------------
00005         ClanLib, the platform independent game SDK.
00006 
00007         This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00008         version 2. See COPYING for details.
00009 
00010         For a total list of contributers see CREDITS.
00011 
00012         ------------------------------------------------------------------------
00013 
00014         File purpose:
00015                 clanCore initialization headers and win32 event routing support.
00016 */
00017 
00018 #ifndef header_init_win32
00019 #define header_init_win32
00020 
00021 #include <list>
00022 #include "API/Core/System/system.h"
00023 
00024 class CL_Win32EventListener;
00025 
00026 class CL_System_Win32 : public CL_System
00027 {
00028 public:
00029         static void add_listener(CL_Win32EventListener *listener);
00030         static void remove_listener(CL_Win32EventListener *listener);
00031 
00032         static HINSTANCE hInstance;
00033 
00034 // private, don't access except from init_win32.cpp:
00035         static std::list<CL_Win32EventListener*> listeners;
00036 };
00037 
00038 class CL_Win32EventListener
00039 {
00040 public:
00041         virtual bool received_event(UINT uMsg, WPARAM wParam, LPARAM lParam)=0;
00042 };
00043 
00044 #endif

Generated at Wed Apr 4 19:54:00 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001