Add simplewindow_move_resize() function

This commit is contained in:
Julien Danjou 2008-03-14 13:01:00 +01:00
parent 61f9ae172f
commit d144c53395
2 changed files with 8 additions and 0 deletions

View File

@ -110,6 +110,13 @@ simplewindow_resize(SimpleWindow *sw, unsigned int w, unsigned int h)
return XResizeWindow(sw->display, sw->window, w, h);
}
int simplewindow_move_resize(SimpleWindow *sw, int x, int y,
unsigned int w, unsigned int h)
{
return (simplewindow_move(sw, x, y)
&& simplewindow_resize(sw, w, h));
}
/** Refresh the window content
* \param sw the SimpleWindow to refresh
* \param phys_screen physical screen id

View File

@ -38,6 +38,7 @@ void simplewindow_delete(SimpleWindow *);
int simplewindow_move(SimpleWindow *, int, int);
int simplewindow_resize(SimpleWindow *, unsigned int, unsigned int);
int simplewindow_refresh_drawable(SimpleWindow *, int);
int simplewindow_move_resize(SimpleWindow *, int, int, unsigned int, unsigned int);
#endif
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80