Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_events.h 


Log Message:
add cast macros for the events

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_events.h,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- ewl_events.h        4 Mar 2007 00:52:01 -0000       1.26
+++ ewl_events.h        28 Jun 2007 23:05:48 -0000      1.27
@@ -10,6 +10,12 @@
  */
 
 /**
+ * @def EWL_EVENT_WINDOW_EXPOSE(e)
+ * Typedcasts a pointer to an Ewl_Event_Window_Expose pointer
+ */
+#define EWL_EVENT_WINDOW_EXPOSE(e) ((Ewl_Event_Window_Expose *)(e))
+
+/**
  * The Ewl_Event_Window_Expose structure
  */
 typedef struct Ewl_Event_Window_Expose Ewl_Event_Window_Expose;
@@ -26,6 +32,13 @@
 };
 
 /**
+ * @def EWL_EVENT_KEY(e)
+ * Typedcasts a pointer to an Ewl_Event_Key pointer
+ */
+#define EWL_EVENT_KEY(e) ((Ewl_Event_Key *)(e))
+
+
+/**
  * The Ewl_Event_Key structure
  */
 typedef struct Ewl_Event_Key Ewl_Event_Key;
@@ -40,6 +53,12 @@
 };
 
 /**
+ * @def EWL_EVENT_KEY_DOWN(e)
+ * Typedcasts a pointer to an Ewl_Event_Key_Down pointer
+ */
+#define EWL_EVENT_KEY_DOWN(e) ((Ewl_Event_Key_Down *)(e))
+
+/**
  *  The Ewl_Event_Window_Key_Down structure 
  */
 typedef struct Ewl_Event_Key_Down Ewl_Event_Key_Down;
@@ -53,6 +72,12 @@
 };
 
 /**
+ * @def EWL_EVENT_KEY_UP(e)
+ * Typedcasts a pointer to an Ewl_Event_Key_Up pointer
+ */
+#define EWL_EVENT_KEY_DOWN(e) ((Ewl_Event_Key_Up *)(e))
+
+/**
  * The Ewl_Event_Key_Up structure
  */
 typedef struct Ewl_Event_Key_Up Ewl_Event_Key_Up;
@@ -66,6 +91,12 @@
 };
 
 /**
+ * @def EWL_EVENT_MOUSE(e)
+ * Typedcasts a pointer to an Ewl_Event_Mouse pointer
+ */
+#define EWL_EVENT_MOUSE(e) ((Ewl_Event_Mouse *)(e))
+
+/**
  * The Ewl_Event_Mouse structure
  */
 typedef struct Ewl_Event_Mouse Ewl_Event_Mouse;
@@ -81,6 +112,12 @@
 };
 
 /**
+ * @def EWL_EVENT_MOUSE_DOWN(e)
+ * Typedcasts a pointer to an Ewl_Event_Mouse_Down pointer
+ */
+#define EWL_EVENT_MOUSE_DOWN(e) ((Ewl_Event_Mouse_Down *)(e))
+
+/**
  * The Ewl_Event_Mouse_Down structure
  */
 typedef struct Ewl_Event_Mouse_Down Ewl_Event_Mouse_Down;
@@ -96,6 +133,12 @@
 };
 
 /**
+ * @def EWL_EVENT_MOUSE_UP(e)
+ * Typedcasts a pointer to an Ewl_Event_Mouse_Up pointer
+ */
+#define EWL_EVENT_MOUSE_UP(e) ((Ewl_Event_Mouse_Up *)(e))
+
+/**
  * The Ewl_Event_Mouse_Up structure
  */
 typedef struct Ewl_Event_Mouse_Up Ewl_Event_Mouse_Up;
@@ -110,6 +153,12 @@
 };
 
 /**
+ * @def EWL_EVENT_MOUSE_MOVE(e)
+ * Typedcasts a pointer to an Ewl_Event_Mouse_Move pointer
+ */
+#define EWL_EVENT_MOUSE_MOVE(e) ((Ewl_Event_Mouse_Move *)(e))
+
+/**
  * The Ewl_Event_Mouse_Move structure
  */
 typedef struct Ewl_Event_Mouse_Move Ewl_Event_Mouse_Move;
@@ -123,6 +172,12 @@
 };
 
 /**
+ * @def EWL_EVENT_MOUSE_IN(e)
+ * Typedcasts a pointer to an Ewl_Event_Mouse_In pointer
+ */
+#define EWL_EVENT_MOUSE_IN(e) ((Ewl_Event_Mouse_In *)(e))
+
+/**
  * The Ewl_Event_Mouse_In structure
  */
 typedef struct Ewl_Event_Mouse_In Ewl_Event_Mouse_In;
@@ -136,6 +191,12 @@
 };
 
 /**
+ * @def EWL_EVENT_MOUSE_OUT(e)
+ * Typedcasts a pointer to an Ewl_Event_Mouse_Out pointer
+ */
+#define EWL_EVENT_MOUSE_OUT(e) ((Ewl_Event_Mouse_Out *)(e))
+
+/**
  * The Ewl_Event_Mouse_Out structure
  */
 typedef struct Ewl_Event_Mouse_Out Ewl_Event_Mouse_Out;
@@ -149,6 +210,12 @@
 };
 
 /**
+ * @def EWL_EVENT_MOUSE_WHEEL(e)
+ * Typedcasts a pointer to an Ewl_Event_Mouse_Wheel pointer
+ */
+#define EWL_EVENT_MOUSE_WHEEL(e) ((Ewl_Event_Mouse_Wheel *)(e))
+
+/**
  * The Ewl_Event_Mouse_Wheel structure
  */
 typedef struct Ewl_Event_Mouse_Wheel Ewl_Event_Mouse_Wheel;
@@ -164,6 +231,12 @@
 };
 
 /**
+ * @def EWL_DND_TYPES(t)
+ * Typedcasts a pointer to an Ewl_Dnd_Types pointer
+ */
+#define EWL_DND_TYPES(t) ((Ewl_Dnd_Types *)(t))
+
+/**
  * The Ewl_Dnd_Types type 
  */
 typedef struct Ewl_Dnd_Types Ewl_Dnd_Types;
@@ -178,6 +251,12 @@
 };
 
 /**
+ * @def EWL_EVENT_DND_POSITION(e)
+ * Typedcasts a pointer to an Ewl_Event_Dnd_Position pointer
+ */
+#define EWL_EVENT_DND_POSITION(e) ((Ewl_Event_Dnd_Position *)(e))
+
+/**
  * The Ewl_Event_Dnd_Position type
  */
 typedef struct Ewl_Event_Dnd_Position Ewl_Event_Dnd_Position;
@@ -192,6 +271,12 @@
 };
 
 /**
+ * @def EWL_EVENT_DND_DROP(e)
+ * Typedcasts a pointer to an Ewl_Event_Dnd_Drop pointer
+ */
+#define EWL_EVENT_DND_DROP(e) ((Ewl_Event_Dnd_Drop *)(e))
+
+/**
  * The Ewl_Event_Dnd_Drop type
  */
 typedef struct Ewl_Event_Dnd_Drop Ewl_Event_Dnd_Drop;
@@ -207,6 +292,12 @@
 };
 
 /**
+ * @def EWL_EVENT_DND_DATA_RECEIVED(e)
+ * Typedcasts a pointer to an Ewl_Event_Dnd_Data_Received pointer
+ */
+#define EWL_EVENT_DND_DATA_RECEIVED(e) ((Ewl_Event_Dnd_Data_Received *)(e))
+
+/**
  * The Ewl_Event_Dnd_Data_Received type
  */
 typedef struct Ewl_Event_Dnd_Data_Received Ewl_Event_Dnd_Data_Received;
@@ -223,6 +314,12 @@
 };
 
 /**
+ * @def EWL_EVENT_DND_DATA_REQUEST(e)
+ * Typedcasts a pointer to an Ewl_Event_Dnd_Data_Request pointer
+ */
+#define EWL_EVENT_DND_DATA_REQUEST(e) ((Ewl_Event_Dnd_Data_Request *)(e))
+
+/**
  * The Ewl_Event_Dnd_Data_Requested type
  */
 typedef struct Ewl_Event_Dnd_Data_Request Ewl_Event_Dnd_Data_Request;
@@ -235,6 +332,12 @@
        void *handle; /**< Engine specific handle for responding to request */
        char *type;   /**< Type of data requested */
 };
+
+/**
+ * @def EWL_EVENT_ACTION_RESPONSE(e)
+ * Typedcasts a pointer to an Ewl_Event_Action_Response pointer
+ */
+#define EWL_EVENT_ACTION_RESPONSE(e) ((Ewl_Event_Action_Response*)(e))
 
 /**
  * The Ewl_Event_Action_Response type



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to