draw.h

来自「sharp的arm920t 7A400的评估板附带光盘Sharp KEVLH7A」· C头文件 代码 · 共 62 行

H
62
字号
/**********************************************************************
 *	$Workfile:   draw.h  $
 *	$Revision:   1.0  $
 *	$Author:   WellsK  $
 *	$Date:   Sep 23 2002 13:54:18  $
 *
 *	Project: LH7A400 
 *
 *	Description:
 *     Basic draw functions (line, box, circle). All pixel coordinates
 *     are positive. (X=0, Y=0 is the upper left hand corner of the
 *     display).
 * 
 *	References:
 *     Internal documentation
 *
 *	Revision History:
 *	$Log:   //smaicnt2/pvcs/VM/CDROM/archives/KEV7A400/Software/Board applications/Simple startup demo/draw.h-arc  $
 * 
 *    Rev 1.0   Sep 23 2002 13:54:18   WellsK
 * Initial revision.
 * 
 * 
 *	COPYRIGHT (C) 2001 SHARP MICROELECTRONICS OF THE AMERICAS, INC.
 *		CAMAS, WA
 *********************************************************************/

#ifndef DRAW_H
#define DRAW_H

#include "SMA_Types.h"

// Initialize the draw package, set the active frame buffer base
// address
void draw_init (UNS_16 *fb_addr, int xmax, int ymax);

// Set the pen width (in pixels)
void draw_set_pen_width (int pen_width);

// Set the pen color
void draw_set_pen_color (UNS_16 pen_color);

// Set fill color (used for boxes and circles)
void draw_set_fill_color (UNS_16 fill_color);

// Draw a line from (X1, Y1) to (X2, Y2)
void draw_line (int x1, int y1, int x2, int y2);

// Place a box with corners (X1, Y1) and (X2, Y2)
void draw_box (int x1, int y1, int x2, int y2);

// Place a circle with center (X1, Y1) and radius RAD (in pixels)
void draw_circle (int x1, int y1, int RAD);

// Fills the display with the active fill color
void draw_clear_screen (void);

// Puts a pixel at (X, Y) in th epen color
void draw_pixel (int x1, int y1);

#endif /* DRAW_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?