windows-nt/Source/XPSP1/NT/drivers/tpg/hwx/common/inc/glyph.h

47 lines
1.1 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
// glyph.h
#ifndef __INCLUDE_GLYPH
#define __INCLUDE_GLYPH
#ifdef __cplusplus
extern "C"
{
#endif
#include "frame.h"
typedef struct tagGLYPH GLYPH;
typedef struct tagGLYPH
{
FRAME *frame;
GLYPH *next;
} GLYPH;
GLYPH *NewGLYPH(void);
void DestroyGLYPH(GLYPH *self);
void DestroyFramesGLYPH(GLYPH *self);
int CframeGLYPH(GLYPH * self);
FRAME *FrameAtGLYPH(GLYPH * self, int iframe);
void GetRectGLYPH(GLYPH * self, LPRECT rect);
BOOL AddFrameGLYPH(GLYPH * self, FRAME * frame);
GLYPH *MergeGlyphGLYPH(GLYPH * self, GLYPH * merge);
GLYPH *GlyphFromHpendata(HPENDATA hpendata);
XY *SaveRawxyGLYPH(GLYPH *self);
void RestoreRawxyGLYPH(GLYPH *self, XY *xy);
BOOL TranslateGlyph (GLYPH *pGlyph, int dx, int dy);
BOOL TranslateGuide (GUIDE *pGuide, int dx, int dy);
GLYPH *CopyGlyph (GLYPH *pGlyph);
BOOL GuideNormalizeInk (GUIDE *pGuide, GLYPH *pGlyph);
BOOL NormalizeInk(GLYPH *pGlyph, int yDev);
BOOL CheckInkBounds (GLYPH *pGlyph, GUIDE *pGuide);
#define GlyphCopyGLYPH(self) MergeGlyphGLYPH(self, 0)
#ifdef __cplusplus
};
#endif
#endif //__INCLUDE_GLYPH