PT-20 Programming Guide
77
system.
Returns
:
None
fill_rect
Purpose
:
Fill a white rectangular area on the LCD display.
Syntax
:
void fill_rect(int left, int top, int width, int height);
Example call
:
fill_rect (10,5,30,10);
Includes
:
#include “SDK.h ”
Description
:
The fill_rect function fills a rectangular area white on the LCD display
whose top left position and size are specified by left, top, width, and
height. The cursor position is not affected after the operation.Several
introduces the argument as follows:
left
Fill form the start point of X-axis.
top
Fill form the start point of Y-axis.
width
Fill the width form the start point.
height
Fill the high form the start point.
Returns
:
None
fill_rect_color
Purpose
:
Fill a user define color rectangular area on the LCD display.
Syntax
:
void fill_rect_color(int left, int top, int width, int height, int color);
Example call
:
fill_rect_color(10,5,30,10,COLOR_RED);
Includes
:
#include “SDK.h ”
Description
:
The fill_rect_ color function fills a rectangular area for user define on the
LCD display whose top left position and size are specified by left, top,
width, and height. The cursor position is not affected after the
operation.Several introduces the argument as follows:
left
Fill form the start point of X-axis.
top
Fill form the start point of Y-axis.
width
Fill the width form the start point.
height
Fill the high form the start point.
color
Fill color choice.
Returns
:
None
GetCursor
Purpose
:
Get current cursor status.
Syntax
:
int GetCursor(void);
Example call
:
if (GetCursor( ) = =0) _puts(“Cursor Off”);
Includes
:
#include “SDK.h ”
Description
:
The GetCursor function checks if the cursor is visible or not.