📄 typedef.h
字号:
//----------------------------------------------------------------------
// FileName : typedef.h
// Project : Ebx4752
// Memo :
//----------------------------------------------------------------------
#ifndef _TYPEDEF_H_
#define _TYPEDEF_H_
// type definition
#define INTSIZE 4
#define SHORTSIZE 2
#define LONGSIZE 4
#define FLOATSIZE 4
#define DOUBLESIZE 8
typedef unsigned char uchar;
typedef uchar Bool;
typedef uchar BOOL;
typedef const unsigned char cuchar;
typedef const char cchar;
typedef uchar* ucharp;
#ifdef PCVER
typedef short sint;
typedef unsigned short uint;
typedef const unsigned short cuint;
typedef unsigned int ulong;
typedef const unsigned int culong;
#define XDOTS 112
#define YDOTS 128
#define SCRW (XDOTS >> 3)
#define SCRH YDOTS
#define BTNS_W 668
#define DISP_BUF_SIZE (SCRW * SCRH)
#define FONTWIDTH 14
#define FONTHEIGHT 14
#define CH_FONTWIDTH 7
#else
typedef int sint;
typedef unsigned int uint;
typedef const unsigned int cuint;
typedef unsigned long ulong;
typedef const unsigned long culong;
#define FONTWIDTH 14
#define FONTHEIGHT 14
#define CH_FONTWIDTH 7
#endif
#define UCHAR_N1 ((uchar)(-1))
#define SINT_N1 ((sint)(-1))
#define UINT_N1 ((uint)(-1))
#define ULONG_N1 ((ulong)(-1L))
//----------------------------------------------------------------------
// Constan definition
//----------------------------------------------------------------------
#define TRUE 1
#define FALSE 0
#define CL_WRITE 0X00
#define CL_GRAY1 0X01
#define CL_GRAY2 0X02
#define CL_BLACK 0X03
#define NORMAL 0x00 // Character's attrib (Normal display)
#define BOLD 0x01 // Character's attrib (Bold display)
#define ITALIC 0x02 // Character's attrib (Italic display)
#define FONT_OTHER 0x03 // Character's attrib (BoldItalic display)
#define FONT_TRANS 0x04 // Character's attrib (Transfer display)
#define FONT_ICON 0x05 // Character's attrib (BoldItalic display)
#define RESERVE 0x80 // Character's attrib (Reserve display)
#endif //_TYPEDEF_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -