| Extracted from Pike v7.8 release 866 at 2018-07-18.

[Top]
GTK2
GTK2.Gnome2Canvas

# Method GTK2.Gnome2Canvas()->set_scroll_region()

Method set_scroll_region

  `Gnome2.Canvas set_scroll_region(float x1, float y1, float x2, float y2)`

Description

  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.