Platform Package reference: Function EwSetUserColor()

Description of the function EwSetUserColor() available in Platform Packages for ANSI C compatible target systems running in the color format Index8 (CLUT based). This function is intended to be used when integrating the Embedded Wizard created GUI application with the underlying graphics subsystem, graphics hardware or other external GUI applications coexisting on the same system.


void EwSetUserColor( XInt32 aIndex, XColor aColor )



Index of the user color entry within the global CLUT (color look-up table).


New color to replace the old color value within the CLUT.


The function EwSetUserColor() changes the color value of a user defined color within the global CLUT (color look-up table). User defined colors exist for external applications coexisting with the GUI application only. In this manner the external application can manage its own/private set of color values. To allocate a user specific color value within the CLUT the function EwAllocUserColor() is available.