## 4.21 LCD

An LCD widget simulates a liquid crystal display. It is capable of displaying a fixed width numerical value.

### Widget Info

Symbolic widget type | EZ_WIDGET_LCD
Default class name | "Lcd"
Default instance name | "lcd"

### Widget Interface Routines

`void EZ_SetLcdString(EZ_Widget *parent, char *str);`

set the numeric string to be displayed.

`void EZ_SetLcdInteger(EZ_Widget *lcd, int n);`

set the integer to be displayed.

`void EZ_SetLcdFloat(EZ_Widget *cd, float f);`

set a floating point number to be displayed.

`void EZ_ClearLcd (EZ_Widget *lcd);`

clear a Lcd widget.

`void EZ_SetLcdNDigits (EZ_Widget *lcd, int n);`

set the width (in terms of digits) of a lcd widget.

`void EZ_SetLcdFontSize (EZ_Widget *lcd, int n);`

set the font size, in terms of pixels.

`void EZ_SetLcdForeground (EZ_Widget *lcd, char *clr);`

set the foreground color.

`void EZ_SetLcdBackground (EZ_Widget *lcd, char *clr);`

set the background color.

### Screenshot

### Resources

Config_Option | ResourceName | DefaultValue
EZ_CLASS | class | `"Lcd"`
EZ_NAME | name | `"lcd"`

EZ_X | x |
EZ_Y | y |
EZ_WIDTH | width |
EZ_HEIGHT | height |

EZ_LOCATION | location |
EZ_SIZE | size |
EZ_GEOMETRY | geometry |

EZ_WIDTH_HINT | widthHint |
EZ_HEIGHT_HINT | heightHint |
EZ_SIZE_HINT | sizeHint |

EZ_BORDER_WIDTH | borderWidth | `0`
EZ_BORDER_TYPE | borderType | `none`
EZ_FOCUS_PAD | focusPad | `0`

EZ_PADX | padx | `8`
EZ_PADY | pady | `6`
EZ_IPADX | iPadx | `0`
EZ_IPADY | iPady | `0`

EZ_CURSOR | cursor | `"XC_left_ptr"`
EZ_BUBBLE_STRING | bubbleString | `null`

EZ_CALLBACK | N/A | `null null`
EZ_DESTROY_CALLBACK | N/A | `null null`
EZ_EVENT_HANDLER | N/A | `null null`

EZ_FOREGROUND | foreground | `"black"`
EZ_BACKGROUND | background | `"gray74`
EZ_BG_IMAGE_FILE | bgImageFile | `null`
EZ_BG_PIXMAP | N/A | `none`

EZ_BG_IMAGE_FILE_B | bgImageFileB | `null`
EZ_BG_PIXMAP_B | N/A | `none`
EZ_CLIENT_PTR_DATA | N/A | `null`
EZ_CLIENT_INT_DATA | clientIntData | `0`

EZ_DND_DRAG_CURSOR | dndDragCursor | `none`
EZ_DND_BUBBLE_STRING | dndBubbleString | `null`

EZ_LCD_NDIGITS | lcdNDigits | `6`
EZ_LCD_FONT_SIZE | lcdFontSize | `8`
EZ_LCD_BACKGROUND | lcdBackground | `"gray74"`
EZ_LCD_FOREGROUND | lcdForeground | `"gray74"`

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