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_window.c 


Log Message:
ecore_x_window_geometry_get() added

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -3 -r1.37 -r1.38
--- Ecore_X.h   21 Feb 2004 20:44:37 -0000      1.37
+++ Ecore_X.h   21 Feb 2004 21:09:12 -0000      1.38
@@ -732,6 +732,7 @@
 void             ecore_x_window_lower(Ecore_X_Window win);
 void             ecore_x_window_reparent(Ecore_X_Window win, Ecore_X_Window 
new_parent, int x, int y);
 void             ecore_x_window_size_get(Ecore_X_Window win, int *w, int *h);
+void             ecore_x_window_geometry_get(Ecore_X_Window win, int *x, int *y, int 
*w, int *h);
 void             ecore_x_window_cursor_show(Ecore_X_Window win, int show);
 void             ecore_x_window_defaults_set(Ecore_X_Window win);
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- ecore_x_window.c    20 Feb 2004 07:06:29 -0000      1.12
+++ ecore_x_window.c    21 Feb 2004 21:09:13 -0000      1.13
@@ -389,6 +389,37 @@
  * FIXME: To be fixed.
  */
 void
+ecore_x_window_geometry_get(Ecore_X_Window win, int *x, int *y, int *w, int *h)
+{
+   Window         dummy_win;
+   int            ret_x, ret_y;
+   unsigned int   ret_w, ret_h, dummy_border, dummy_depth;
+
+   if (!win)
+      win = DefaultRootWindow(_ecore_x_disp);
+   ret_w = 0;
+   ret_h = 0;
+   if (!XGetGeometry(_ecore_x_disp, win, &dummy_win, &ret_x, &ret_y,
+                     &ret_w, &ret_h, &dummy_border, &dummy_depth))
+   {
+      ret_x = 0;
+      ret_y = 0;
+      ret_w = 0;
+      ret_h = 0;
+   }
+
+   if (x) *x = ret_x;
+   if (y) *y = ret_y;
+   if (w) *w = (int) ret_w;
+   if (h) *h = (int) ret_h;
+}
+   
+/**
+ * To be documented.
+ *
+ * FIXME: To be fixed.
+ */
+void
 ecore_x_window_cursor_show(Ecore_X_Window win, int show)
 {
    if (win == 0) win = DefaultRootWindow(_ecore_x_disp);




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to