EZ
Up Prev Next Contents


3.26.2 Interaction Routines

void EZ_SetLedString(EZ_Widget *led, char *str)

This function sets the text to be displayed on a LED widget. It replaces the current LED text with the specified string.

void EZ_ClearLed(EZ_Widget *led)

This function clears a LED display. It clears the LED action queue also. I.e., any outstanding actions queued for the LED widget will have been removed after this function returns.

void EZ_SetLedForeground(EZ_Widget *led, char *clr)

This function sets the current widget foreground color for an LED widget. The default LED foreground color is red.

void EZ_SetLedBackground(EZ_Widget *led, char *clr)

This function sets the background color for an LED widget. The display will be updated if necessary. The default LED background color is black. LED background color is different from the widget background color. The later is used to display the widget border.

void EZ_SetLedColorFunction(EZ_Widget *led,

unsigned long (*colorF)(int, int))

This functions sets a procedure to be used to calculate the color of on diodes. The coloring function is used only by verb+EZ_SetLedString+ and is not used by the scroll functions.

void EZ_SetLedOffPixelColor(EZ_Widget *led, char *clr)

This function sets the color for off diodes. The default color is gray46.

void EZ_SetLedFont(EZ_Widget *led, char *fname)

This function sets the font for an LED.

void EZ_SetLedPixelSize(EZ_Widget *led, int size)

This function sets the size of the diodes. size must be a integer between 1 and 4 inclusive.

void EZ_SetLedWidth(EZ_Widget *led, int w)

void EZ_SetLedHeight(EZ_Widget *led, int h)

void EZ_SetLedSize(EZ_Widget *led, int w, int h)

These functions sets the width, height or both for an LED widget. Measurement are in "LED pixels".

int EZ_LedIsFree(EZ_Widget *led)

This function returns 1 if the specified LED's action queue is empty. It returns 0 otherwise.

void EZ_QueueLedAction(EZ_Widget *led, int type, int delay,

int count, char *msg, char *color)

This function inserts an action to led's action queue.


HTML Documentation Maintainance:Arturo Espinosa <arturo@nuclecu.unam.mx>