# HG changeset patch # User Jason Rumney # Date 948597550 0 # Node ID d6331257c601c7fbddc0ce3c990c9a07fb114a8d # Parent d98e84b468a21c1c836b464e550577842551ab24 (XGCValue): New struct for emulating X GCs. diff -r d98e84b468a2 -r d6331257c601 src/w32gui.h --- a/src/w32gui.h Sun Jan 23 03:18:25 2000 +0000 +++ b/src/w32gui.h Sun Jan 23 03:19:10 2000 +0000 @@ -30,10 +30,24 @@ 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;