PEXSetTableEntries - Set Lookup Table Entries (5.0)


Note: This function has been superseded by the PEXChangeTableValues, but it is maintained here for backwards compatibility with PEXlib 5.1.

Synopsis

 
   void PEXSetTableEntries(
        Display *display,
        PEXLookupTable table,
        unsigned int start,
        unsigned int count,
        int table_type,
        PEXPointer entries
   )
 

Arguments

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

table
The resource identifier of the lookup table.

start
The index of the first table entry to be set.

count
The number of table entries to be set.

table_type
The type of lookup table entries to be set (see the Description).

entries
An array of table entries.

Returns

None.

Description

Invoke PEXSetTableEntries to set the lookup table entries in the specified lookup table, starting at the specified entry index.

The entries must point to an array of structures having one of the following types:

Errors

BadAlloc
The implementation failed to allocate the resource.

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
The sum of start plus count is too large, 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.