Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

msg.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                     msg.h  -  Window toolkit message class
00003                              -------------------
00004     begin                : Sun Nov 17 2002
00005     copyright            : (C) 2002 by Mattias Jansson
00006     email                : mattias@realityrift.com
00007  ***************************************************************************
00008  
00009  The contents of this file are subject to the Mozilla Public License Version
00010  1.1 (the "License"); you may not use this file except in compliance with
00011  the License. You may obtain a copy of the License at 
00012  http://www.mozilla.org/MPL/
00013 
00014  Software distributed under the License is distributed on an "AS IS" basis,
00015  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00016  for the specific language governing rights and limitations under the
00017  License.
00018 
00019  The Original Code is the NeoEngine, NeoWTK, msg.h
00020 
00021  The Initial Developer of the Original Code is Mattias Jansson.
00022  Portions created by Mattias Jansson are Copyright (C) 2002
00023  Reality Rift Studios. All Rights Reserved.
00024 
00025  ***************************************************************************/
00026 
00027 #ifndef __NEOWTKMSG_H
00028 #define __NEOWTKMSG_H
00029 
00030 
00031 #include "base.h"
00032 
00033 #include <string>
00034 
00035 
00042 namespace NeoWTK
00043 {
00044 
00045 
00046 // External classes
00047 class Object;
00048 
00049 
00055 class NEOWTK_API Msg
00056 {
00057     public:
00058 
00059 
00064         enum MSGID
00065         {
00066           INVALID                                     = 0x00000000,
00067 
00068           RESIZE                                      = 0x00000101,
00069           MOVE                                        = 0x00000102,
00070 
00071           MOUSE_ENTER                                 = 0x00000201,
00072           MOUSE_LEAVE                                 = 0x00000202,
00073           MOUSE_DOWN                                  = 0x00000203,
00074           MOUSE_UP                                    = 0x00000204,
00075           MOUSE_MOVE                                  = 0x00000205,
00076 
00077           BUTTON_DOWN                                 = 0x00000301,
00078           BUTTON_UP                                   = 0x00000302,
00079 
00080           KEYBOARD_FOCUS                              = 0x00000401,
00081           KEYBOARD_DOWN                               = 0x00000402,
00082 
00083           LAST_RESERVED                               = 0x00FFFFFF
00084         };
00085 
00086 
00087     public:
00088 
00090         MSGID                                         m_eID;
00091 
00093         Object                                       *m_pkSender;
00094 
00096         Object                                       *m_pkReceiver;
00097 
00099         unsigned int                                  m_uiData[5];
00100 
00103                                                       Msg( MSGID eID = INVALID, Object *pkSender = 0, Object *pkReceiver = 0 ) : m_eID( eID ), m_pkSender( pkSender ), m_pkReceiver( pkReceiver ) {}
00104 
00109         std::string                                   GetIDAsString() const;
00110 };
00111 
00112 
00113 }; 
00116 #endif

Generated on Wed Jan 21 14:21:20 2004 for NeoWTK by doxygen 1.3.5