Resources are specified by name/value pairs. There are two type of resources: application resources and widget resources. The syntax for specifying an application resource is like:
application_name.resource_name: value
The next table lists the set of application resource names and their default values defined by EZwgl.
----------------------------------------------------------- Resource Name Default value ----------------------------------------------------------- "labelFont" "-Adobe-Helvetica-Bold-R-Normal--*-120-*-*-*-*-*-*", "textFont" "-*-Courier-Medium-R-Normal--*-120-*-*-*-*-*-*", "menuTitleFont" "-Adobe-Times-Bold-I-Normal--*-120-*-*-*-*-*-*", "highlight" true "sliderDepression" true "labelOffset" true "ditherImage" false "bubbleHelp" off "initialState" normalState "visual" "name" argv[0] "backingStore" off "privateColormap" off "readWriteColormap" off "focusHighlightColor" black
Specifying a widget resource is a bit more complicated, since there may be several instances of the same widget in one application. As a result, one must use the whole pathname of a widget, starting with the application name, to specify a widget resource. For example, the line
example1.box.label.labelString: Welcome!
sets the lable of a widget named label, which is a child of a widget named box which is a toplevel widget in an application called example1, to the string "Welcome".
There is a wildcard syntax which may be used to simplify resources specifications. One may use an asterisk instead of a dot and omitting one or more terms of the full pathname. For example, the above line may be simplified as
*label.labelString: Welcome!
For a complete description of resource specification and matching, please consult the "Xlib Programming Manual" by Adrian Nye.