Color wells

EsColorWellCreate

EsColorWell *EsColorWellCreate(EsElement *parent, EsColorWellFlags flags = ES_FLAGS_DEFAULT, uint32_t colorRGB = 0);

Creates a color well that displays and edits a color. Clicking it opens a color picker.

EsColorWellGetRGB

uint32_t EsColorWellGetRGB(EsColorWell *well);

Returns the current color as an RGB value. If the well has no opacity, the top 8 bits are cleared.

EsColorWellSetRGB

void EsColorWellSetRGB(EsColorWell *well, uint32_t colorRGB, bool sendChangedMessage);

Sets the color of the well and clears the indeterminate state. If sendChangedMessage is true, sends the ES_MSG_COLOR_CHANGED message.

EsColorWellSetIndeterminate

void EsColorWellSetIndeterminate(EsColorWell *well);

Marks the well as indeterminate, meaning that no color is set.