?? gui.h
字號:
#ifndef __GUI__H
#define __GUI__H
#include "lcd.h"
typedef unsigned char uint8; /* defined for unsigned 8-bits integer variable 無符號8位整型變量 */
typedef signed char int8; /* defined for signed 8-bits integer variable 有符號8位整型變量 */
typedef unsigned int uint16; /* defined for unsigned 16-bits integer variable 無符號16位整型變量 */
typedef signed int int16; /* defined for signed 16-bits integer variable 有符號16位整型變量 */
typedef unsigned long uint32; /* defined for unsigned 32-bits integer variable 無符號32位整型變量 */
typedef signed long int32; /* defined for signed 32-bits integer variable 有符號32位整型變量 */
typedef float fp32; /* single precision floating point variable (32bits) 單精度浮點數(shù)(32位長度) */
typedef double fp64; /* double precision floating point variable (64bits) 雙精度浮點數(shù)(64位長度) */
#ifndef NULL
#define NULL ((void*)0)
#endif
/* 定義坐標(biāo)數(shù)據(jù)結(jié)構(gòu) */
typedef struct
{
uint32 x; // x坐標(biāo)變量
uint32 y; // y坐標(biāo)變量
}
PointXY;
/* 畫圓函數(shù) */
#define GUI_CircleX_EN 1
void GUI_HLine(unsigned int x0, unsigned char y0, unsigned int x1, TCOLOR color);
void GUI_RLine(unsigned int x0, unsigned char y0, unsigned char y1, TCOLOR color);
void GUI_Rectangle(uint16 x0, uint8 y0, uint16 x1, uint8 y1, TCOLOR color);
void GUI_RectangleFill(uint16 x0, uint8 y0, uint16 x1, uint8 y1, TCOLOR color);
void GUI_Square(uint32 x0, uint32 y0, uint32 with, TCOLOR color);
void GUI_Line(uint32 x0, uint32 y0, uint32 x1, uint32 y1, TCOLOR color);
void GUI_LineS(uint32 const *points, uint8 no, TCOLOR color);
void GUI_CircleFill(uint32 x0, uint32 y0, uint32 r, TCOLOR color);
void GUI_Circle(uint32 x0, uint32 y0, uint32 r, TCOLOR color);
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -