static_text_def.h.svn-base

来自「A Flash Player with ActionScript support」· SVN-BASE 代码 · 共 48 行

SVN-BASE
48
字号
#ifndef _STATIC_TEXT_H_#define _STATIC_TEXT_H_#include "base_types.h"#include "shape_def.h"#include "swf_file_pub.h"// 静态文字 TEXT// ===============// 静态文字(DefineText) 指在整个影片播放过程中,不会变化的文字.struct  GlyphEntry      {    UI32                 GlyphIndex;    SI32                 GlyphAdvance;    struct Matrix	 GlyphMatrix;    struct DefineShape	 Shape;};struct TextRecord       {    struct TextRecord*	NextP;    UI8			Flags;#define TextRecordType		0x1<<7#define StyleFlagsHasFont	0x1<<3#define StyleFlagsHasColor	0x1<<2#define StyleFlagsHasYOffset	0x1<<1#define StyleFlagsHasXOffset	0x1<<0    UI16                FontID;    struct RGBA         TextColor;    SI16                XOffset;    SI16                YOffset;    UI16                TextHeight;    UI8                 GlyphCount;    struct GlyphEntry   GlyphEntries[1];};// 涵盖 DefineText, DefineText2struct DefineText {    UI8                 CharacterType ; //= CharText;    UI16		CharacterID;    struct RECT         TextBounds;    struct Matrix       TextMatrix;    UI8                 GlyphBits;    UI8                 AdvanceBits;    struct TextRecord*  TextRecordsP;           //接 textrecord 链表};void stx_to_shape(swf_file_t *swf_p,struct DefineText *Text);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?