DATASERV (kappserv) functions


LIBRARY ROUTINE

kcolor_query_attribute - query characteristics of a color attribute.

LIBRARY CALL

int kcolor_query_attribute(
   kobject  object,
   char    *attribute,
   int     *num_args,
   int     *arg_size,
   int     *data_type,
   int     *permanent)

INPUT

OUTPUT

RETURN VALUE

TRUE (1) if attribute exists, FALSE (0) otherwise

DESCRIPTION

This function is used to query characteristics of a color attribute from a data object.

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.

The following example illustrates the use of the query attribute call to determine the data type of the colorspace attribute.

int data_type;

kcolor_query_attributes(object, KCOLOR_COLORSPACE, NULL, NULL, &data_type, NULL);

A complete list of color attributes can be found in Chapter 4 of Programming Services Volume II.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$DATASERV/objects/library/kappserv/src/color.c

SEE ALSO

kappserv(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.