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

class connection {#class-connection}

Class connection is a subclass of class line. A connection is a line that connects two graphical objects and is automatically updated if either of them changes. A connection is the instantiation of a link. The link object describes the generic properties of the line: what the line looks like and handle objects it can connect too.

A connection may be created between any two graphical object displayed on the same window object. The connected graphicals may be arbitrary deeply nested on device objects. The connection itself is displayed in the deepest nested device that displays both connected graphicals.

See also class link, class handle, graphical ->connect, `graphical <-connected' and class connect_gesture.

The drawing program PceDraw exploits connections.

@see graphical<-common_device @see topic Connections @see graphical->connect @see graphical->handle @see class connect_gesture @see class line @see class constraint @see class link @see class handle

Instance variables {#class-connection-instvars}

Send methods {#class-connection-send}

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