int kcolor_set_attributes(
kobject object,
kvalist)
The variable argument list takes the form:
ATTRIBUTE_NAME1, value1 [, value2, ...],
ATTRIBUTE_NAME2, value1,[, value2, ...],
..., NULL
The number of value arguments in the variable argument list for each attribute depends on the attribute. The NULL at the end of the variable argument list serves as a flag indicating the end of the list.
Be careful not to forget the NULL at the end of the list. This is a common programming error which unfortunately will not generate any compiler warnings.
none
This color service function should be used in conjunction with other application services such as polymorphic data services and geometry data services. This function will work on data objects opened or created with either of those services.
Attributes are set by passing in the attribute name along with the value or variable containing the value to assign to the attribute.
The following example illustrates the use of a single
set attributes call to assign two different color
attributes. The define KRGB
could have been
passed in directly to set the colorspace attribute.
int colorspace = KRGB;
kcolor_set_attributes(object,
KCOLOR_COLORSPACE, colorspace,
KCOLOR_MAP_OPERATION, KROW_LEFT,
NULL);
A complete list of color attributes can be found in Chapter 4 of Programming Services Volume II.
none
none
$DATASERV/objects/library/kappserv/src/color.c