C++转DELPHI代码,在线等待..
帮忙转成DELPHI代码:
class __declspec(dllimport) CEndUseApp
{
public:
CEndUseApp(void);
virtual ~CEndUseApp(void);
void* m_Ves;
virtual UINT EndUseApp( GR_EVENT* pEvent);
virtual UINT EndError( GR_EVENT* pEvent);
protected:
void GrFlush(void);
void GrGetScreenInfo(GR_SCREEN_INFO *sip);
GR_COLOR GrGetSysColor(int index);
GR_WINDOW_ID GrNewWindow(GR_WINDOW_ID parent, GR_COORD x, GR_COORD y,
GR_SIZE width, GR_SIZE height, GR_SIZE bordersize,
GR_COLOR background, GR_COLOR bordercolor);
void GrDestroyWindow(GR_WINDOW_ID wid);
GR_WINDOW_ID GrNewPixmap(GR_SIZE width, GR_SIZE height, void * addr);
GR_GC_ID GrNewGC(void);
GR_GC_ID GrCopyGC(GR_GC_ID gc);
void GrGetGCInfo(GR_GC_ID gc, GR_GC_INFO *gcip);
void GrDestroyGC(GR_GC_ID gc);
void GrSetGCForeground(GR_GC_ID gc, GR_COLOR foreground);
void GrSetGCBackground(GR_GC_ID gc, GR_COLOR background);
void GrSetGCUseBackground(GR_GC_ID gc, GR_BOOL flag);
void GrSetGCMode(GR_GC_ID gc, int mode);
void GrSetGCFont(GR_GC_ID gc, GR_FONT_ID font);
GR_REGION_ID GrNewRegion(void);
GR_REGION_ID GrNewPolygonRegion(int mode, GR_COUNT count, GR_POINT *points);
void GrMapWindow(GR_WINDOW_ID wid);
void GrUnmapWindow(GR_WINDOW_ID wid);
void GrMoveWindow(GR_WINDOW_ID wid, GR_COORD x, GR_COORD y);
void GrResizeWindow(GR_WINDOW_ID wid, GR_SIZE width, GR_SIZE height);
void GrGetWindowInfo(GR_WINDOW_ID wid, GR_WINDOW_INFO *infoptr);
void GrSetWMProperties(GR_WINDOW_ID wid, GR_WM_PROPERTIES *props);
void GrGetWMProperties(GR_WINDOW_ID wid, GR_WM_PROPERTIES *props);
GR_FONT_ID GrCreateFont(GR_CHAR *name, GR_COORD height,
GR_LOGFONT *plogfont);
void GrSetFontSize(GR_FONT_ID fontid, GR_COORD size);
void GrSetFontRotation(GR_FONT_ID fontid, int tenthsdegrees);
void GrSetFontAttr(GR_FONT_ID fontid, int setflags, int clrflags);
void GrDestroyFont(GR_FONT_ID fontid);
void GrGetFontInfo(GR_FONT_ID font, GR_FONT_INFO *fip);
GR_WINDOW_ID GrGetFocus(void);
void GrSetFocus(GR_WINDOW_ID wid);
void GrClearArea(GR_WINDOW_ID wid, GR_COORD x, GR_COORD y, GR_SIZE width,
GR_SIZE height, GR_BOOL exposeflag);
void GrSelectEvents(GR_WINDOW_ID wid, GR_EVENT_MASK eventmask);
void GrLine(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x1, GR_COORD y1,
GR_COORD x2, GR_COORD y2);
void GrPoint(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y);
void GrPoints(GR_DRAW_ID id, GR_GC_ID gc, GR_COUNT count,
GR_POINT *pointtable);
void GrRect(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE width, GR_SIZE height);
void GrFillRect(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE width, GR_SIZE height);
void GrPoly(GR_DRAW_ID id, GR_GC_ID gc, GR_COUNT count,
GR_POINT *pointtable);
void GrFillPoly(GR_DRAW_ID id, GR_GC_ID gc, GR_COUNT count,
GR_POINT *pointtable);
void GrEllipse(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE rx, GR_SIZE ry);
void GrFillEllipse(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x,
GR_COORD y, GR_SIZE rx, GR_SIZE ry);
void GrArc(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE rx, GR_SIZE ry, GR_COORD ax, GR_COORD ay,
GR_COORD bx, GR_COORD by, int type);
void GrArcAngle(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE rx, GR_SIZE ry, GR_COORD angle1,
GR_COORD angle2, int type); /* floating point required*/
void GrGetGCTextSize(GR_GC_ID gc, void *str, int count, int flags,
GR_SIZE *retwidth, GR_SIZE *retheight,GR_SIZE *retbase);
void GrArea(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE width,GR_SIZE height,void *pixels,int pixtype);
void GrBitmap(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE width, GR_SIZE height, GR_BITMAP *imagebits);
void GrDrawImageBits(GR_DRAW_ID id,GR_GC_ID gc,GR_COORD x,GR_COORD y,
GR_IMAGE_HDR *pimage);
void GrDrawImageFromFile(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x,
GR_COORD y, GR_SIZE width, GR_SIZE height,
char *path, int flags);
GR_IMAGE_ID GrLoadImageFromFile(char *path, int flags);
void GrDrawImageFromBuffer(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x,
GR_COORD y, GR_SIZE width, GR_SIZE height,
void *buffer, int size, int flags);
GR_IMAGE_ID GrLoadImageFromBuffer(void *buffer, int size, int flags);
void GrDrawImageToFit(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x,
GR_COORD y, GR_SIZE width, GR_SIZE height,
GR_IMAGE_ID imageid);
void GrFreeImage(GR_IMAGE_ID id);
void GrGetImageInfo(GR_IMAGE_ID id, GR_IMAGE_INFO *iip);
void GrText(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
void *str, GR_COUNT count, int flags);
void GrGetSystemPalette(GR_PALETTE *pal);
void GrSetSystemPalette(GR_COUNT first, GR_PALETTE *pal);
void GrFindColor(GR_COLOR c, GR_PIXELVAL *retpixel);
void GrCloseWindow(GR_WINDOW_ID wid);
void GrSetScreenSaverTimeout(GR_TIMEOUT timeout);
void GrSetBackgroundPixmap(GR_WINDOW_ID wid, GR_WINDOW_ID pixmap,
int flags);
void GrSetPortraitMode(int portraitmode);
GR_WINDOW_ID GrNewWindowEx(GR_WM_PROPS props, GR_CHAR *title,
GR_WINDOW_ID parent, GR_COORD x, GR_COORD y,
GR_SIZE width, GR_SIZE height, GR_COLOR background);
void GrDrawLines(GR_DRAW_ID w, GR_GC_ID gc, GR_POINT *points,
GR_COUNT count);
GR_BITMAP * GrNewBitmapFromData(GR_SIZE width, GR_SIZE height, GR_SIZE bits_width,
GR_SIZE bits_height, void *bits, int flags);
GR_WINDOW_ID GrNewPixmapFromData(GR_SIZE width, GR_SIZE height,
GR_COLOR foreground, GR_COLOR background, void * bits,
int flags);
};