Enlightenment CVS committal
Author : xcomputerman
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x
Modified Files:
Ecore_X.h ecore_x_fixes.c
Log Message:
Round out support for XserverRegion.
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -3 -r1.166 -r1.167
--- Ecore_X.h 19 May 2006 06:05:35 -0000 1.166
+++ Ecore_X.h 19 May 2006 15:02:54 -0000 1.167
@@ -207,6 +207,13 @@
ECORE_X_GRAVITY_STATIC = 10
} Ecore_X_Gravity;
+/* Needed for ecore_x_region_window_shape_set */
+typedef enum _Ecore_X_Shape_Type
+{
+ ECORE_X_SHAPE_BOUNDING,
+ ECORE_X_SHAPE_CLIP
+} Ecore_X_Shape_Type;
+
typedef struct _Ecore_X_Event_Key_Down Ecore_X_Event_Key_Down;
typedef struct _Ecore_X_Event_Key_Up Ecore_X_Event_Key_Up;
typedef struct _Ecore_X_Event_Mouse_Button_Down
Ecore_X_Event_Mouse_Button_Down;
@@ -1479,6 +1486,9 @@
EAPI void ecore_x_region_extents(Ecore_X_Region dest, Ecore_X_Region
source);
EAPI Ecore_X_Rectangle * ecore_x_region_fetch(Ecore_X_Region region, int *num,
Ecore_X_Rectangle *bounds);
EAPI void ecore_x_region_expand(Ecore_X_Region dest, Ecore_X_Region
source, unsigned int left, unsigned int right, unsigned int top, unsigned int
bottom);
+EAPI void ecore_x_region_gc_clip_set(Ecore_X_Region region,
Ecore_X_GC gc, int x_origin, int y_origin);
+EAPI void ecore_x_region_window_shape_set(Ecore_X_Region region,
Ecore_X_Window win, Ecore_X_Shape_Type type, int x_offset, int y_offset);
+EAPI void ecore_x_region_picture_clip_set(Ecore_X_Region region,
Ecore_X_Picture picture, int x_origin, int y_origin);
/* XDamage Extension Support */
typedef Ecore_X_ID Ecore_X_Damage;
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/ecore_x_fixes.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ecore_x_fixes.c 19 May 2006 14:23:04 -0000 1.1
+++ ecore_x_fixes.c 19 May 2006 15:02:54 -0000 1.2
@@ -236,4 +236,27 @@
#endif
}
+EAPI void
+ecore_x_region_gc_clip_set(Ecore_X_Region region, Ecore_X_GC gc, int x_origin,
int y_origin)
+{
+#ifdef ECORE_XFIXES
+ XFixesSetGCClipRegion(_ecore_x_disp, gc, x_origin, y_origin, region);
+#endif
+}
+
+EAPI void
+ecore_x_region_window_shape_set(Ecore_X_Region region, Ecore_X_Window win,
Ecore_X_Shape_Type type, int x_offset, int y_offset)
+{
+#ifdef ECORE_XFIXES
+ XFixesSetWindowShapeRegion(_ecore_x_disp, win, type, x_offset, y_offset,
region);
+#endif
+}
+
+EAPI void
+ecore_x_region_picture_clip_set(Ecore_X_Region region, Ecore_X_Picture
picture, int x_origin, int y_origin)
+{
+#ifdef ECORE_XFIXES
+ XFixesSetPictureClipRegion(_ecore_x_disp, picture, x_origin, y_origin,
region);
+#endif
+}
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs