module xft_types; import deimos.X11.X; import deimos.X11.Xlib; // XRender types extern(C) { struct XRenderColor { ushort red; ushort green; ushort blue; ushort alpha; } } // Xft types extern(C) { struct XftDraw; struct XftColor { ulong pixel; XRenderColor color; } struct XftFont { int ascent; int descent; int height; int max_advance_width; void* pattern; void* charset; } struct XftGlyphFontSpec { XftFont* font; uint glyph; short x; short y; } } // Aliases for compatibility alias Draw = XftDraw*; alias Color = XftColor; alias GlyphFontSpec = XftGlyphFontSpec;