📄 general_draw_api.h
字号:
# ifndef _GENERAL_DRAW_API_H_
# define _GENERAL_DRAW_API_H_
/*****************************************************************
* 声明库名称:通用绘图API头文件 *
* 版本: v0.01 *
* 作者: I ROBOT *
* 创建日期: Copyright (C) 2008年11月17日 *
*----------------------------------------------------------------*
* [支持库] *
* 支持库名称: *
* 支持库版本: *
* 支持库说明: *
*----------------------------------------------------------------*
* [版本更新] *
* 更新: I ROBOT *
* 更新日期: *
* 版本: *
*----------------------------------------------------------------*
* [版本历史] *
* v0.01 创建版本,通用绘图API *
*----------------------------------------------------------------*
* [使用说明] *
* 1.在应用绘图层调用通用绘图API *
*****************************************************************/
/********************
* 头 文 件 配 置 区 *
********************/
# include "Hardware_Apply_Init.h"
/********************
* 系 统 宏 定 义 *
********************/
/********************
* 常 数 宏 定 义 *
********************/
/*---------------------------------------------*
* 图 层 ID 宏 定 义 *
*---------------------------------------------*/
# ifndef DRAW_LAYER_ID
# define DRAW_LAYER_ID
# define ID_MOUSE 0X01
# define ID_ACTIVE 0X02
# endif
/********************
* 动 作 宏 定 义 *
********************/
/********************
* 模块结构体定义区 *
********************/
typedef struct Draw_Info_Struct
{
UINT8 chPre_x;
UINT8 chPre_y;
UINT8 chCur_x;
UINT8 chCur_y;
UINT8 chx_Pixel;
UINT8 chy_Pixel;
UINT8 *chSelf_Buffer;
UINT8 *chMask_Buffer;
UINT8 *chAlpha_Buffer;
UINT8 ID_Draw;
}Draw_Info;
/********************
* 函 数 声 明 区 *
********************/
extern BOOL Dot_Inside(Draw_Info *Draw,
UINT8 chx_Pixel,UINT8 chy_Pixel);
void Clear_Masked_Dot(Draw_Info *Queue,UINT8 chCur_ID_Draw,
UINT8 chScreen_x,UINT8 chScreen_y);
extern void Draw_Dot(Draw_Info *Queue,UINT8 chCur_ID_Draw,
UINT8 chScreen_x,UINT8 chScreen_y);
extern void Clear_Dot(Draw_Info *Queue,UINT8 chCur_ID_Draw,
UINT8 chScreen_x,UINT8 chScreen_y);
/********************
* 模块函数声明区 *
********************/
/********************
* 模块变量声明区 *
********************/
/********************
* 全局变量声明区 *
********************/
# endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -