PEXChangeTableValues - Change Table Values (5.2)


Synopsis

 
   void PEXChangeTableValues(
        Display *display,
        PEXLookupTable table,
        int table_type,
        unsigned int index,
        unsigned long mask,
        PEXPointer entry
   )
 

Arguments

display
A pointer to a display structure returned by a successful XOpenDisplay call.

table
The resource identifier of the lookup table.

table_type
The type of lookup table (see Table Types, Availability, and Definitions).

index
The index of the table entry to be set.

mask
The mask indicating which table entry values are to be set.

entry
A pointer to a table values structure.

Returns

None.

Description

Invoke PEXChangeTableValues to set the specified values in the lookup table entry index in the specified lookup table.

The entry must point to a structure that is appropriate for the type of lookup table. See Table Types, Availability, and Definitions to determine the PEXlib data structure appropriate for each type of lookup table. The argument must also be set using bits appropriate to the table type.

Errors

BadAlloc
The implementation failed to allocate the resource. You may have tried to set more table entries than the implementation allows.

BadPEXColorType
The specified color type is invalid or unsupported.

BadPEXLookupTable
The specified lookup table resource identifier is invalid, or the table type is unsupported.

BadValue
A table entry field contains an invalid value, or index 0 is invalid for the specified table type.

See Also

For an overview, see Lookup Tables.