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

class elevation {#class-elevation}

General description of an elevated area. Elevations are mainly used to describe the edges of dialog_item objects. Elevations are reusable named objects. In its most simple form, an elevation object is simply created from its <-height:

new(X, elevation(1))

describes a <-kind: 3d elevation suitable for a colour environment.

Elevations come in two flavours: <-kind: 3d will paint a hilited edge on the top and left sides of the object and a reduced edge on the bottom and right sides. By default these colours are computed from the context background colour using colour <-hilite and colour <-reduce.

A <-kind: shadow elevation is designed for monochrome displays. It will paint a shadow at the bottom and right side of the objects to simulate the object elevated above the surface.

Instance variables {#class-elevation-instvars}

Send methods {#class-elevation-send}

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