📄 taddef.h
字号:
/* *---------------------------------------------------------------------- * T-Kernel / Standard Extension * * Copyright (C) 2006 by Ken Sakamura. All rights reserved. * T-Kernel / Standard Extension is distributed * under the T-License for T-Kernel / Standard Extension. *---------------------------------------------------------------------- * * Version: 1.00.00 * Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11. * *---------------------------------------------------------------------- *//* * taddef.h * * TAD basic definitions */#ifndef __TADDEF_H__#define __TADDEF_H__#include <basic.h>#include <extension/typedef.h>#ifdef __cplusplusextern "C" {#endif/* * Standard variable-length segment ID */#define TS_INFO 0xE0U /* Management information segment */#define TS_TEXT 0xE1U /* Text start segment */#define TS_TEXTEND 0xE2U /* Text end segment */#define TS_FIG 0xE3U /* Graphic start segment */#define TS_FIGEND 0xE4U /* Graphic end segment */#define TS_IMAGE 0xE5U /* Image segment */#define TS_VOBJ 0xE6U /* Avatar segment */#define TS_DFUSEN 0xE7U /* Specification tag segment */#define TS_FFUSEN 0xE8U /* Function tag segment */#define TS_SFUSEN 0xE9U /* Setting tag segment *//* * Text tag segment ID */#define TS_TPAGE 0xA0U /* Text page layout specification tag */#define TS_TRULER 0xA1U /* Line format specification tag */#define TS_TFONT 0xA2U /* Character specification tag */#define TS_TCHAR 0xA3U /* Special character specification tag */#define TS_TATTR 0xA4U /* Character layout specification tag */#define TS_TSTYLE 0xA5U /* Character modification specification tag */#define TS_TVAR 0xADU /* Variable reference specification tag */#define TS_TMEMO 0xAEU /* Text memo specification tag */#define TS_TAPPL 0xAFU /* Text application specification tag *//***** TS_TFONT: character specification tag *****/#define TT_FONT_SID 0U /* Font specification tag */#define TT_FATR_SID 1U /* Font attribute specification tag */#define TT_SIZE_SID 2U /* Character size specification tag */#define TT_RATIO_SID 3U /* Character scale-up/down specification tag */#define TT_CGAP_SID 4U /* Character spacing specification tag */#define TT_ROTATE_SID 5U /* Character rotation specification tag */#define TT_COLOR_SID 6U /* Character color specification tag */#define TT_BASE_SID 7U /* Character reference position shift tag *//* * Data type */typedef H UNITS; /* Unit */typedef UH CHSIZE; /* Character size */typedef UH SCALE; /* Absolute value or ratio */typedef UH RATIO; /* Ratio *//* Character scale-up/down specification tag */typedef struct {#if BIGENDIAN UB subid; UB unused;#else UB unused; UB subid;#endif RATIO h_ratio; RATIO w_ratio;} TT_RATIO;#ifdef __cplusplus}#endif#endif /* __TAD_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -