📄 tddisplay.h
字号:
/********************************************************************************/
/* File Name : TdDisplay.h */
/* File Description : 时间日期的界面显示模块 */
/* Author Name : Wu Yajun */
/* Date : */
/* Copyright : mobile innovation */
/* History: Date: */
/* Author: */
/* Modify: */
/********************************************************************************/
#ifndef _TDDISPLAY_H
#define _TDDISPLAY_H
/* 常量定义 */
#define EX 0 //4 - 128*160屏 0 - 120*160屏
/* 结构体定义 */
typedef int Color;
typedef struct
{
unsigned char x;
unsigned char y;
}TD_Point; //点
typedef struct
{
unsigned char x1;
unsigned char y1;
unsigned char x2;
unsigned char y2;
int type; //线
}TD_Line;
typedef struct
{
unsigned char x;
unsigned char y;
unsigned char width;
unsigned char height;
}TD_Rect; //框
typedef struct
{
unsigned char x;
unsigned char y;
int width;
int height;
char *p;
}TD_Pic; //图片
typedef struct
{
Color fillcolor;
Color framecolor;
int type;
}TD_Attri; //属性
/* 全局变量声明 */
/* 背景 */
extern const TD_Pic BG_pic;
extern const TD_Rect BG_rect;
extern const TD_Attri BG_attr;
extern const Color BG_color2;
/* 接口函数声明 */
void TD_drawLine(TD_Line l, Color color); //画线
void TD_drawSolidRectangle(TD_Rect r, TD_Attri a); //画矩形框
void TD_drawPic(TD_Pic pic); //画图片
void TD_drawBkg(TD_Rect r, TD_Attri a); //画背景框
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -