Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: Tag: SPLIT Ecore_X.h Makefile.am ecore_x_window.c Log Message: working working.... =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Attic/Ecore_X.h,v retrieving revision 1.1.2.16 retrieving revision 1.1.2.17 diff -u -3 -r1.1.2.16 -r1.1.2.17 --- Ecore_X.h 7 Feb 2003 00:24:02 -0000 1.1.2.16 +++ Ecore_X.h 8 Feb 2003 01:30:57 -0000 1.1.2.17 @@ -402,7 +402,10 @@ void ecore_x_window_del(Window win); void ecore_x_window_show(Window win); void ecore_x_window_hide(Window win); - +void ecore_x_window_move(Window win, int x, int y); +void ecore_x_window_resize(Window win, int w, int h); +void ecore_x_window_move_resize(Window win, int x, int y, int w, int h); + void ecore_x_window_prop_title_set(Window win, const char *t); char *ecore_x_window_prop_title_get(Window win); void ecore_x_window_prop_name_class_set(Window win, const char *n, const char *c); =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Attic/Makefile.am,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -3 -r1.1.2.3 -r1.1.2.4 --- Makefile.am 4 Feb 2003 04:18:55 -0000 1.1.2.3 +++ Makefile.am 8 Feb 2003 01:30:57 -0000 1.1.2.4 @@ -1,6 +1,8 @@ ## Process this file with automake to produce Makefile.in -INCLUDES = @x_cflags@ -I../ecore +INCLUDES = \ +-I$(top_srcdir)/src/lib/ecore \ +@x_cflags@ lib_LTLIBRARIES = libecore_x.la include_HEADERS = \ =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Attic/ecore_x_window.c,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -3 -r1.1.2.1 -r1.1.2.2 --- ecore_x_window.c 4 Feb 2003 04:18:55 -0000 1.1.2.1 +++ ecore_x_window.c 8 Feb 2003 01:30:57 -0000 1.1.2.2 @@ -92,3 +92,51 @@ { XUnmapWindow(_ecore_x_disp, win); } + +/** + * Move a window + * @param win + * @param x + * @param y + * + * Move a window to x, y + */ +void +ecore_x_window_move(Window win, int x, int y) +{ + XMoveWindow(_ecore_x_disp, win, x, y); +} + +/** + * Resize a window + * @param win + * @param w + * @param h + * + * Resize a window to w x h + */ +void +ecore_x_window_resize(Window win, int w, int h) +{ + if (w < 1) w = 1; + if (h < 1) h = 1; + XResizeWindow(_ecore_x_disp, win, w, h); +} + +/** + * Move and resize a window + * @param win + * @param x + * @param y + * @param w + * @param h + * + * Move a window to x, y and resize it to w x h + */ +void +ecore_x_window_move_resize(Window win, int x, int y, int w, int h) +{ + if (w < 1) w = 1; + if (h < 1) h = 1; + XMoveResizeWindow(_ecore_x_disp, win, x, y, w, h); +} ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ enlightenment-cvs mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs