Clr_eol, Clr_rect, Clr_scr – Argox PA-20 Programming Guide User Manual

Page 78

Advertising
background image

PT-20 Programming Guide

76

LCD

The following functions clr_eol, clr_rect, clr_scr, fill_rect, fill_rect_color, Get_Cursor,

Set_Cursor, gotoxy, wherex, wherexy, wherey, _printf_color, _putchar, _puts, _puts_color and

show_image_bmp only effect the current TextBlock. The parameters of those function will

base on TextBlock

’s size and position.

clr_eol

Purpose: Clear from where the cursor is to the end of the line. The cursor position is

not affected after the operation.

Syntax: void clr_eol(void);

Example call: clr_eol( );

Includes:

#include “SDK.h ”

Description: The clr_eol function clears from where the cursor is to the end of the line,

and then moves the cursor to the original place.

Returns: None

clr_rect

Purpose: Clear a rectangular area on the LCD display. The cursor position is not

affected after the operation.

Syntax: void clr_rect(int left, int top, int width, int height);

Example call: clr_rect(10,5,30,10 );

Includes:

#include “SDK.h ”

Description: The clr_rect function clears an rectangular area 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

Clear form the start point of X-axis.

top

Clear form the start point of Y-axis.

width

Clear the width form the start point.

height

Clear the high form the start point.

Returns: None

clr_scr

Purpose: Clear LCD display.

Syntax: void clr_scr(void);

Example call: clr_scr( );

Includes:

#include “SDK.h ”

Description: The clr_scr function clears the LCD display and places the cursor at the

first column of the first line, that is (0,0) as expressed with the coordinate

Advertising