📄 shape_def.h.svn-base
字号:
#ifndef _SHAPES_H_#define _SHAPES_H_#include "base_types.h"struct FillStyle { UI8 FillStyleType; struct RGBA Color; struct Matrix GradientMatrix; struct Gradient *GradientP; UI16 BitmapId; struct Matrix BitmapMatrix; struct RGBA *cmap; unsigned char *alpha_table;};struct FillStyleArray { int count; struct FillStyle FillStyles[1];};struct LineStyle { UI16 Width; struct RGBA ColorRGB; struct RGBA RendColor;};struct LineStyleArray { int count; struct LineStyle LineStyles[1];};struct ShapeRecord { struct ShapeRecord* NextP; UI8 Flags;};// 直线记录struct StraightEdgeRecord { void* NextP; UI8 Flags;#define TStraightEdge 0xc0 UB_1 StraightLineFlag; long StraightLineDeltaX; long StraightLineDeltaY; UB_1 VertLineFlag; long HorLineDeltaX; long VertLineDeltaY;};// 曲线记录struct CurvedEdgeRecord { void* NextP; UI8 Flags;#define TCurvedEdge 0x80 long ControlDeltaX; long ControlDeltaY; long AnchorDeltaX; long AnchorDeltaY;};struct StyleChangeRecord { void* NextP; UI8 Flags;#define StateNewStyles 0x1<<4#define StateLineStyle 0x1<<3#define StateFillStyle1 0x1<<2#define StateFillStyle0 0x1<<1#define StateMoveTo 0x1<<0 // long MoveBits; long MoveDeltaX; long MoveDeltaY; long FillStyle0; long FillStyle1; long LineStyle; struct FillStyleArray* FillStylesP; struct LineStyleArray* LineStylesP; long NumFillBits; long NumLineBits;};// shape 上接三条链表, 一个为 FillStyle , 一个为 LineStyle// 还有 边 的链表.// 包括 DefineShape, DefineShape2, DefineShape3;struct DefineShape { UI8 CharacterType;// = CharShape; UI16 CharacterID; struct RECT ShapeBounds; struct FillStyleArray* FillStylesP; struct LineStyleArray* LineStylesP; struct ShapeRecord* ShapeRecordsP; // 接 StraightEdgeRecord,CurvedEdgeRecord 和 StyleChangeRecord};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -