ganv_canvas_set_scroll_region
void ganv_canvas_set_scroll_region (GanvCanvas* canvas,
double x1,
double y1,
double x2,
double y2);
Sets the scrolling region of a canvas to the specified rectangle. The canvas will then be able to scroll only within this region. The view of the canvas is adjusted as appropriate to display as much of the new region as possible.
- canvas
A canvas.
- x1
Leftmost limit of the scrolling region.
- y1
Upper limit of the scrolling region.
- x2
Rightmost limit of the scrolling region.
- y2
Lower limit of the scrolling region.
- Returns