include/df/msg.hpp

00001 //MSG_BASE defined in win32.hpp or linux.hpp
00002 #define MSG_NULL          (MSG_BASE+0x0000)
00003 
00004 //BOOL Event(Element *,...); messages
00005 #define MSG_MOUSEOVER     (MSG_BASE+0x0001)
00006 #define MSG_MOUSEDOWN     (MSG_BASE+0x0002)
00007 #define MSG_MOUSEUP       (MSG_BASE+0x0003)
00008 #define MSG_MOUSEDOWN2    (MSG_BASE+0x0004)
00009 #define MSG_MOUSEUP2      (MSG_BASE+0x0005)
00010 #define MSG_CLICK         (MSG_BASE+0x0006)
00011 #define MSG_CLICK2        (MSG_BASE+0x0007)
00012 #define MSG_DBLCLICK      (MSG_BASE+0x0008)
00013 #define MSG_DBLCLICK2     (MSG_BASE+0x0009)
00014 #define MSG_KEYDOWN       (MSG_BASE+0x000a)
00015 #define MSG_KEYUP         (MSG_BASE+0x000b)
00016 #define MSG_DRAW          (MSG_BASE+0x000c)
00017 #define MSG_GETKEY        (MSG_BASE+0x000d)
00018  #define MSG_GETCHAR MSG_GETKEY
00019 #define MSG_SIZE          (MSG_BASE+0x000e)  //Window class only [DF v0.20]
00020 #define MSG_POS           (MSG_BASE+0x000f)  //Window class only [DF v0.20]
00021 #define MSG_MENUCOMMAND   (MSG_BASE+0x0010)  //Menu item executed (run command for item)
00022 #define MSG_GETFOCUS      (MSG_BASE+0x0011)  //Gets Focus
00023 #define MSG_LOSTFOCUS     (MSG_BASE+0x0012)  //Loses Focus
00024 #define MSG_CLOSE         (MSG_BASE+0x0013)  //window close request
00025 #define MSG_EVENT         (MSG_BASE+0x0014)  //generic event occured (Explorer class requires update)
00026 #define MSG_MOUSEWHEEL    (MSG_BASE+0x0015)  //mouse wheel moved (flgs = signed distance)
00027 #define MSG_DROPFILE      (MSG_BASE+0x0016)  //drop file (requires WND_DROPFILES)
00028 
00029 //BOOL Event(Network *,...); messages
00030 #define MSG_NETWORK_READ    (MSG_BASE+0x0100)  //inbound data waiting
00031 #define MSG_NETWORK_WRITE   (MSG_BASE+0x0101)  //outbound buffer not full
00032 #define MSG_NETWORK_ACCEPT  (MSG_BASE+0x0102)  //inbound connection attempt
00033 #define MSG_NETWORK_CLOSE   (MSG_BASE+0x0103)  //connection lost/error
00034 #define MSG_NETWORK_DATA    (MSG_BASE+0x0104)  //MsgServer/MsgClient has received a message
00035 
00036 //BOOL Event(Thread *,...); messages
00037 #define MSG_EXIT          (MSG_BASE+0x0200)    //SIGTERM or service shutdown request
00038 #define MSG_ERROR         (MSG_BASE+0x0201)    //RaiseException() occured
00039 
00040 #define MSG_USER (MSG_BASE + 0x2000)     //free to use upto 0xffffffff
00041 
00042 //Note : 0x0700 - 0x07ff,bit:0x1000 = Reserved for Internal Linux Events
00043 //Note : 0x0800 - 0x08ff = Reserved for Internal Win32 Events
00044 

Generated on Mon Mar 5 09:49:14 2007 for DigiForce by  doxygen 1.4.7