src/swipl-devel/packages/xpce/man/refmanual/md/region.md

class region {#class-region}

A region object defines a sub-area of an area, expressed using function objects to denote the X, Y, W and H of the sub-area in terms of the dimensions of the main area.

Regions are used by handler objects to denote the handler should only respond when an event object occurred in some sub-area of a graphical. As handler objects have become old-fashioned since the introduction of class gesture this class too is seldomly used.

For example, the region

region(x, y, w/10, h/10)

Denotes a region with the same origin as the area it is related to, extending to 10% in both directions.

@see class expression @see class area @see class handler

Instance variables {#class-region-instvars}

Get methods {#class-region-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.