Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

  1. // glyph.h
  2. #ifndef __INCLUDE_GLYPH
  3. #define __INCLUDE_GLYPH
  4. #ifdef __cplusplus
  5. extern "C"
  6. {
  7. #endif
  8. #include "frame.h"
  9. typedef struct tagGLYPH GLYPH;
  10. typedef struct tagGLYPH
  11. {
  12. FRAME *frame;
  13. GLYPH *next;
  14. } GLYPH;
  15. GLYPH *NewGLYPH(void);
  16. void DestroyGLYPH(GLYPH *self);
  17. void DestroyFramesGLYPH(GLYPH *self);
  18. int CframeGLYPH(GLYPH * self);
  19. FRAME *FrameAtGLYPH(GLYPH * self, int iframe);
  20. void GetRectGLYPH(GLYPH * self, LPRECT rect);
  21. BOOL AddFrameGLYPH(GLYPH * self, FRAME * frame);
  22. GLYPH *MergeGlyphGLYPH(GLYPH * self, GLYPH * merge);
  23. GLYPH *GlyphFromHpendata(HPENDATA hpendata);
  24. XY *SaveRawxyGLYPH(GLYPH *self);
  25. void RestoreRawxyGLYPH(GLYPH *self, XY *xy);
  26. BOOL TranslateGlyph (GLYPH *pGlyph, int dx, int dy);
  27. BOOL TranslateGuide (GUIDE *pGuide, int dx, int dy);
  28. GLYPH *CopyGlyph (GLYPH *pGlyph);
  29. BOOL GuideNormalizeInk (GUIDE *pGuide, GLYPH *pGlyph);
  30. BOOL NormalizeInk(GLYPH *pGlyph, int yDev);
  31. BOOL CheckInkBounds (GLYPH *pGlyph, GUIDE *pGuide);
  32. #define GlyphCopyGLYPH(self) MergeGlyphGLYPH(self, 0)
  33. #ifdef __cplusplus
  34. };
  35. #endif
  36. #endif //__INCLUDE_GLYPH