📄 displib.h
字号:
#ifndef DISPLIB_H_
#define DISPLIB_H_
#include "def.h"
class CDispLib
{
public:
CDispLib();
~CDispLib();
public:
void SetHz( U32* p );
void SetAsc( U32* p );
void SetXSize( U32 size );
void SetYSize( U32 size );
void SetDispBuf( U8* p );
void ClrScr();
void SetPixel(S32 x, S32 y,S32 col=0);
void CDispLib::DispAsc(S8 asc, S32 x, S32 y, S32 col=1 );
void CDispLib::DispHz16(S8 *src, S32 x, S32 y, S32 col=1);
void DispStr(S8* str,S32 x,S32 y,S32 col=1);
void DispNumb( S32 dat,S32 x,S32 y,S32 iBefore,S32 iBack,S32 col=1 );
void DispHex( U8 dat, S32 x, S32 y, S32 col=1 );
void DrawPoly(S32* xy,U32 count,U32 col=1);
void DrawEllipse(S32 x1,S32 y1,S32 x2,S32 y2,S32 col=1);
void DrawCicle(S32 x,S32 y,S32 r,U32 col=1);
void DrawRect(S32 x1,S32 y1,S32 x2,S32 y2,S32 col=2);
void DrawLine(S32 x1,S32 y1,S32 x2,S32 y2,S32 col=2);
void DrawPoint( S32 x, S32 y, S32 col, S32 width);
void ClrRect( S32 x1, S32 y1, S32 x2, S32 y2 );
public:
private:
U32* pHz16;
U32* pAsc16;
U32 iXSize;
U32 iYSize;
U8* pDispBuf;
S8 pBuf[30];
};
#endif //DISPLIB_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -