int kcolor_match_attributes(
kobject object1,
kobject object2
kvalist)
object2 - the second data object containing the attributes to be compared
The variable argument list takes the form:
ATTRIBUTE_NAME1,
ATTRIBUTE_NAME2,
..., NULL
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.
If the value of all attributes in both objects are the same, then this function will return TRUE. If any of the values are different, then this function will return FALSE.
The following example illustrates the use of the match attributes call to compare two different color attributes.
if (kcolor_match_attributes(obj1, obj2,
KCOLOR_COLORSPACE,
KCOLOR_MAP_OPERATION,
NULL))
kprintf("colorspace and colormap operation are the same "
"in both objects");
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