Home Contents Index Summary Previous Next

8 Class Variables

Class variables act as read-only storage for class-constants. They are normally used for storing setting information, such as fonts, colours etc. For this reason, the default value for a class_variable is defined with the declaration of it, but this default my be overruled using the Defaults file. The system defaults file is located in the XPCE home directory (`@pce<-home'). This file contains an include statement, including the file ~/.xpce/Defaults, (11) which may be used by the developer and application user to specify defaults.

Many XPCE built-in classes define class-variables. These can be examined using the ClassBrowser (see section 3.3.1) from the online manual tools.


Section Index