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

class class_variable {#class-class_variable}

Class-variables represents constants for the class. The are commonly used to represent default values for the visual appearance of graphical classes: thickness, fonts, colours, etc.

Class variables are normally declared using class_variable/4.

If a class defines both a variable object and a class_variable object, the value of the class-variable is used as default (initial) value for the instance variable.

Defaults for class-variables may be defined externally using the Defaults file, which resides in the XPCE home directory.

See also:

Instance variables {#class-class_variable-instvars}

Send methods {#class-class_variable-send}

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