Name
XtSetSubvalues — copy resource settings from an ArgList to a subpart resource list.
Synopsis
void XtSetSubvalues(base, resources, num_resources, args, num_args)
XtPointer base;
XtResourceList resources;
Cardinal num_resources;
ArgList args;
Cardinal num_args;
Arguments
baseSpecifies the base address of the subpart data structure into which the resources should be written.
resourcesSpecifies the nonwidget resource list.
num_resources
Specifies the number of resources in the resource list.
argsSpecifies the argument list of name/value pairs that contain the resource settings to be copied into the subpart data structure.
num_argsSpecifies the number of arguments in the argument list.
Description
XtSetSubvalues copies resource settings from the specified argument list into the structure identified by base. The resource list specifies which resource settings are copied and into which fields of the structure pointed to by base.
XtSetSubvalues is normally called only from the set_values method of a widget with subparts. It can never be called from the application because the application does not have the subpart resource list.
The conjugate function XtGetSubvalues gets a subpart’s resource values.
Structures
XtResource is defined as follows in <X11/Instrinsic.h>:
typedef struct _XtResource {
String resource_name;/∗ Resource name ∗/
String resource_class;/∗ Resource class ∗/
String resource_type;/∗ Representation type desired ∗/
Cardinal resource_size;/∗ Size in bytes of representation ∗/
Cardinal resource_offset;/∗ Offset from base to put resource value ∗/
String default_type;/∗ Representation type of specified default ∗/
XtPointer default_addr;/∗ Address of resource default value ∗/
} XtResource, ∗XtResourceList;
Arg are defined as follows in <X11/Intrinsic.h>:
typedef struct {
String name;
XtArgVal value;
} Arg, ∗ArgList;