90
"C" Programming Guide For Optimus S/R
3.8.4 Clear
clr_eol
Purpose
To clear from where the cursor is to the end of the line.
Syntax
void clr_eol (void);
Example
clr_eol();
Description
This routine clears from where the cursor is to the end of the line, and then
moves the cursor to its original position.
Return
None
See Also
clr_scr
clr_icon
Purpose
To clear the icon zone on the LCD.
Syntax
void clr_icon (void);
Example
clr_icon();
Description
The icon zone is an unprintable area reserved for showing some status icons,
such as the battery icon, antenna, system time, etc. Programmers can show
custom icons in this area by using the show_image function.
When calling clr_scr() to clear the screen, this icon zone won't be cleared.
Therefore, if you need to erase the icon zone, you have to call clr_icon().
Return
None
See Also
clr_scr
clr_rect
Purpose
To clear a rectangular area on the LCD.
Syntax
void clr_rect (int left, int top, int width, int height);
int left; /* x coordinate of the upper left corner of the rectangle */
int top; /* y coordinate of the upper left corner of the rectangle */
int width; /* width of the rectangle to be cleared, in dots */
int height; /* height of the rectangle to be cleared, in dots */
Example
clr_rect (12, 8, 40, 8);
Description
This routine clears a rectangular area on the LCD whose top left position and
size are specified by left, top, width, and height.
Summary of Contents for Optimus R
Page 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Page 6: ......
Page 8: ...2 C Programming Guide For Optimus S R...
Page 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Page 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Page 24: ...18 C Programming Guide For Optimus S R...
Page 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...