Callback types

EsThreadEntryCallback

void EsThreadEntryCallback(EsGeneric argument);

Entry function of a new thread. Called with the argument passed to EsThreadCreate.

EsSwapCallback

void EsSwapCallback(const void *left, const void *right, EsGeneric context);

Swaps the two elements pointed to by left and right. context is user data.

EsCRTComparisonCallback

int EsCRTComparisonCallback(const void *left, const void *right);

Compares the two elements pointed to by left and right. Returns a negative, zero, or positive value.

EsTimerCallback

void EsTimerCallback(EsGeneric argument);

Called when a timer expires. Receives the argument passed to EsTimerSet.

EsMenuCallback

void EsMenuCallback(EsMenu *menu, EsGeneric context);

Called when a menu item is clicked. Receives the menu and the context passed to EsMenuAddItem.

EsUndoCallback

void EsUndoCallback(const void *item, EsUndoManager *manager, EsMessage *message);

Called when an undo item is undone, redone, or cancelled. The message type identifies the operation.

EsFontEnumerationCallback

void EsFontEnumerationCallback(const EsFontInformation *information, EsGeneric context);

Called for each font in the system during font enumeration. Receives the font information and context.

EsUserTaskCallback

void EsUserTaskCallback(EsUserTask *task, EsGeneric data);

Performs the work of a user task started with EsUserTaskStart. Receives the task and the data passed to EsUserTaskStart.

EsFileCopyCallback

bool EsFileCopyCallback(EsFileOffset bytesCopied, EsFileOffset totalBytes, EsGeneric data);

Return false to cancel.

EsWorkCallback

void EsWorkCallback(EsGeneric context);

Runs a work item queued with EsWorkQueue. Receives the context.