dst/source/xft_types.d

42 lines
732 B
D
Raw Normal View History

2025-06-26 18:47:07 +00:00
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;