An application has a ClassName
and an instanceName
.
The class name is set by EZ_InitializeXrm
. It is normally
the application name with the first letter captalized, unless the
first letter is 'X' or 'x', in which case the first two letters
are capitalized. The instance is the command name, or any string
set by the -name
command line option. These two names
are used by the resource manager to identify the application resources
for the application.
Each widget has a ClassName
and a instanceName
also.
The two names are introduced solely for the purpose to use Xlib's
resource manager. They otherwise have nothing to do with the structure
of the library. For example, there is no concept of "widget class"
in EZwgl. As a result, one can use class to group an arbitary
set of widgets together and use their class name to set a common
attribute, like foreground color.
Widget class and instance names are set by EZ_CreateWidgetXrm
or by EZ_CreateWidget
with both the EZ_NAME
and
EZ_CLASS
attributes set. Again, these names are used by
the resource manager identify widget resources.