PEXCreateLookupTable(3) — Subroutines
Name
PEXCreateLookupTable - Create Lookup Table
Synopsis
PEXLookupTable PEXCreateLookupTable(Display ∗display, Drawable drawable, int table_type)
Arguments
displayA pointer to a display structure returned by a successful XOpenDisplay call.
drawableThe resource identifier of a drawable.
table_typeThe type of lookup table to be created (see the Description).
Returns
The resource identifier of the newly-created lookup table.
Description
This function creates a lookup table resource of the specified type and returns the resource identifier of the new lookup table. The returned identifier is used to refer to the created lookup table. The type of lookup table to be created must be one of the following:
PEXLUTColorApprox
PEXLUTColor
PEXLUTDepthCue
PEXLUTEdgeBundle
PEXLUTInteriorBundle
PEXLUTLight
PEXLUTLineBundle
PEXLUTMarkerBundle
PEXLUTPattern
PEXLUTTextBundle
PEXLUTTextFont
PEXLUTView
The newly-created lookup table can only be used with drawables having the same depth and root as the specified drawable.
Data Structures
typedef XID PEXLookupTable;
Errors
BadAllocThe server failed to allocate the resource.
BadDrawableThe specified drawable resource identifier is invalid.
BadMatchThe specified drawable is unsupported.
BadPEXLookupTable
The specified table type is unsupported.
BadValueThe specified table type is invalid.
See Also
PEXFreeLookupTable