From: Jason Rumney Date: Sun, 23 Jan 2000 03:19:10 +0000 (+0000) Subject: (XGCValue): New struct for emulating X GCs. X-Git-Tag: emacs-pretest-21.0.90~5286 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5a048001f769258696756875c864fdfa555f0c66;p=emacs.git (XGCValue): New struct for emulating X GCs. --- diff --git a/src/w32gui.h b/src/w32gui.h index 43b427710c6..dc5dfc0088a 100644 --- a/src/w32gui.h +++ b/src/w32gui.h @@ -30,10 +30,24 @@ typedef struct W32FontStruct { bdffont *bdf; } W32FontStruct; +typedef struct W32FontStruct XFontStruct; + +/* Emulate X GC's by keeping color and font info in a structure. */ +typedef struct _XGCValues +{ + COLORREF foreground; + COLORREF background; + XFontStruct * font; +} XGCValues; + +#define GCForeground 0x01 +#define GCBackground 0x02 +#define GCFont 0x03 + typedef HBITMAP Pixmap; typedef HBITMAP Bitmap; -typedef struct W32FontStruct XFontStruct; -typedef HDC GC; + +typedef XGCValues * GC; typedef COLORREF Color; typedef DWORD Time; typedef HWND Window;