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

class device {#class-device}

A (graphical) device is a collection of graphical objects. As device itself is a graphical objects; devices may be nested. Class device describes the management of such a collection: adding (displaying) graphical objects; erasing graphical objects; changing them; dispatching events over their displayed graphical objects; etc.

Devices communicate changed area's to their super-device and eventually to the window, which takes care of planning and executing the actual redisplay of the X-window.

The PCE-user normally uses the behaviour of devices via the classes figure or one of the sub-classes of window. Class device itself may be used for the definition of compound graphical objects.

The <-area of a device is by definition the bounding box of all <-displayed graphical objects.

@see graphical<-common_device @see graphical-device @see topic Compound Graphicals @see class graphical @see class event @see object->recogniser

Instance variables {#class-device-instvars}

Send methods {#class-device-send}

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