diff options
Diffstat (limited to 'clients/window.h')
-rw-r--r-- | clients/window.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clients/window.h b/clients/window.h index 57e24331..53bcb083 100644 --- a/clients/window.h +++ b/clients/window.h @@ -613,6 +613,14 @@ widget_schedule_redraw(struct widget *widget); void widget_set_use_cairo(struct widget *widget, int use_cairo); +/* + * Sets the viewport destination for the widget's surface + * return 0 on success and -1 on failure. Set width and height to + * -1 to reset the viewport. + */ +int +widget_set_viewport_destination(struct widget *widget, int width, int height); + struct widget * window_frame_create(struct window *window, void *data); |