PEXCreateLookupTable - Create Lookup Table (5.0)


Synopsis

 
 PEXLookupTable PEXCreateLookupTable(
          Display *display,
          Drawable drawable,
          int table_type
   )
 

Arguments

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

drawable
The resource identifier of a drawable.

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

Returns

The resource identifier of the newly-created lookup table. PEXLookupTable data structure.

Description

Invoke PEXCreateLookupTable to create a lookup table resource of the specified type.

This function returns the resource identifier of the new lookup table. You can then specify this resource identifier to refer to the created lookup table. See Table Types, Availability, and Definitions for the types of tables defined by PEXlib for creation with this function.

You can only use the newly-created lookup table with drawables having the same depth and root as the specified drawable.

Errors

BadAlloc
The implementation failed to allocate the resource.

BadDrawable
The specified drawable resource identifier is invalid.

BadMatch
The specified drawable is unsupported.

BadPEXLookupTable
The specified table type is unsupported.

BadValue
The specified table type is invalid.

See Also

For an overview, see Lookup Tables.