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

class area {#class-area}

An area is a rectangular set of pixels. areas are used by graphical objects and windows to represent their position and size.

An area has an origin, described by the <->x and <->y attributes and a size described by the <->width and <->height attributes. All parameters are in pixel-units. An area with either <->width or <->height equal to 0 (zero) contains no pixels.

The position of the origin with respect to the rectangle is determined by the sign of the width and height attributes. See area ->orientation and area ->normalise.

Class area supports class graphical to represent the area of the graphical in the coordinate system of its device. Most of the methods defined on class area also exist on class graphical. For area's, these methods are side-effect free, whereas for graphicals they change the geometry of the graphical. See graphical ->set and `graphical ->geometry'.

@see class region @see area->orientation @see area->normalise @see class point @see class size @see class graphical

Instance variables {#class-area-instvars}

Send methods {#class-area-send}

Get methods {#class-area-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.