84
"C" Programming Guide For Optimus S/R
Syntax
void SetCursor (int cursor);
int cursor; /* state of cursor indication */
Example
SetCursor (0); /* turn off the cursor indication */
Description
This routine displays or hides the cursor on the LCD according to the value
specified. The value of the parameter
status
can be one of the following:
CURSOR_OFF (0) : Hide cursor (Off)
CURSOR_ON (1)
: Display cursor (On)
Return
None
See Also
GetCursor
wherex
Purpose
To get the x coordinate of the current cursor position.
Syntax
int wherex (void);
Example
x_position = wherex();
Description
This routine retrieves the x coordinate of the current cursor position.
Return
It returns the x coordinate.
See Also
wherexy, wherey
wherexy
Purpose
To get the x coordinate and y coordinate of the current cursor position.
Syntax
void wherexy (int *column, int *row);
int *column; /* pointer to integer where x coordinate is stored */
int *row; /* pointer to integer where y coordinate is stored */
Example
wherexy (&x_position, &y_position);
Description
This routine copies the values of the x coordinate and y coordinate of the
current cursor position to the variables whose address is specified in the
arguments
column
and
row
.
Return
None
See Also
gotoxy, wherex, wherey
wherey
Purpose
To get the y coordinate of the current cursor position.
Syntax
int wherey (void);
Example
y_position = wherey();
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...