Add simplewindow_move_resize() function
This commit is contained in:
parent
61f9ae172f
commit
d144c53395
|
@ -110,6 +110,13 @@ simplewindow_resize(SimpleWindow *sw, unsigned int w, unsigned int h)
|
||||||
return XResizeWindow(sw->display, sw->window, w, 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
|
/** Refresh the window content
|
||||||
* \param sw the SimpleWindow to refresh
|
* \param sw the SimpleWindow to refresh
|
||||||
* \param phys_screen physical screen id
|
* \param phys_screen physical screen id
|
||||||
|
|
|
@ -38,6 +38,7 @@ void simplewindow_delete(SimpleWindow *);
|
||||||
int simplewindow_move(SimpleWindow *, int, int);
|
int simplewindow_move(SimpleWindow *, int, int);
|
||||||
int simplewindow_resize(SimpleWindow *, unsigned int, unsigned int);
|
int simplewindow_resize(SimpleWindow *, unsigned int, unsigned int);
|
||||||
int simplewindow_refresh_drawable(SimpleWindow *, int);
|
int simplewindow_refresh_drawable(SimpleWindow *, int);
|
||||||
|
int simplewindow_move_resize(SimpleWindow *, int, int, unsigned int, unsigned int);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
// vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80
|
||||||
|
|
Loading…
Reference in New Issue