2003-10-10 12:33:07 -04:00
|
|
|
#include "xft.h"
|
|
|
|
|
|
|
|
XFT_REC_ACCESSOR_MAKER(scx_enter_xftpattern, XftPattern, scx_xftpattern_record_type);
|
|
|
|
|
|
|
|
XFT_REC_ACCESSOR_MAKER(scx_enter_xftdraw, XftDraw, scx_xftdraw_record_type);
|
|
|
|
|
|
|
|
XFT_REC_ACCESSOR_MAKER(scx_enter_xftcolor, XftColor, scx_xftcolor_record_type);
|
|
|
|
|
|
|
|
XFT_REC_ACCESSOR_MAKER(scx_enter_xftobjectset, XftObjectSet, scx_xftobjectset_record_type);
|
|
|
|
|
|
|
|
XFT_REC_ACCESSOR_MAKER(scx_enter_xftfontset, XftFontSet, scx_xftfontset_record_type);
|
|
|
|
|
2003-10-26 14:00:42 -05:00
|
|
|
s48_value scx_enter_xftfont(XftFont *xf, s48_value dpy)
|
2003-10-26 11:42:31 -05:00
|
|
|
{
|
|
|
|
s48_value rec = S48_FALSE;
|
2003-10-26 14:00:42 -05:00
|
|
|
S48_DECLARE_GC_PROTECT(2);
|
2003-10-26 11:42:31 -05:00
|
|
|
|
2003-10-26 14:00:42 -05:00
|
|
|
S48_GC_PROTECT_2(rec, dpy);
|
2003-10-26 11:42:31 -05:00
|
|
|
rec = s48_make_record(scx_xftfont_record_type);
|
|
|
|
S48_RECORD_SET(rec, 0, s48_enter_integer((long) xf));
|
|
|
|
S48_RECORD_SET(rec, 1, scx_enter_xftpattern(xf->pattern));
|
2003-10-26 14:00:42 -05:00
|
|
|
S48_RECORD_SET(rec, 2, dpy);
|
2003-10-26 11:42:31 -05:00
|
|
|
S48_GC_UNPROTECT();
|
|
|
|
return rec;
|
|
|
|
}
|
|
|
|
|
2003-10-10 12:33:07 -04:00
|
|
|
s48_value scx_XftPatternCreate(void)
|
|
|
|
{
|
2003-10-13 11:27:19 -04:00
|
|
|
return scx_enter_xftpattern(XftPatternCreate());
|
2003-10-10 12:33:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
s48_value scx_XftPatternDestroy(s48_value sxp)
|
|
|
|
{
|
2003-10-16 12:03:19 -04:00
|
|
|
XftPatternDestroy(scx_extract_xftpattern(sxp));
|
2003-10-10 12:33:07 -04:00
|
|
|
return S48_UNSPECIFIC;
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftPatternDuplicate(s48_value sxp)
|
|
|
|
{
|
|
|
|
XftPattern *p;
|
|
|
|
|
|
|
|
p = XftPatternDuplicate(scx_extract_xftpattern(sxp));
|
|
|
|
return scx_enter_xftpattern(p);
|
|
|
|
}
|
|
|
|
|
|
|
|
struct xft_pattern_property* lookup_pattern_property_by_id(int id)
|
|
|
|
{
|
|
|
|
struct xft_pattern_property *tbl;
|
|
|
|
|
|
|
|
for (tbl = &xft_pattern_property_tbl[0];
|
|
|
|
(tbl->scx_id != id) && (tbl->type != SCX_XFT_INVALID);
|
|
|
|
tbl++)
|
|
|
|
;
|
|
|
|
return tbl;
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftPatternGet(s48_value sxp, s48_value sobj, s48_value sid)
|
|
|
|
{
|
|
|
|
XftPattern *p;
|
|
|
|
XftResult rc;
|
|
|
|
XftValue v;
|
|
|
|
int obj, i;
|
|
|
|
s48_value rv = S48_UNSPECIFIC;
|
|
|
|
s48_value rl = S48_UNSPECIFIC;
|
|
|
|
struct xft_pattern_property *tbl;
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(5);
|
2003-10-10 12:33:07 -04:00
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_PROTECT_5(rl, rv, sxp, sobj, sid);
|
2003-10-10 12:33:07 -04:00
|
|
|
p = scx_extract_xftpattern(sxp);
|
|
|
|
obj = s48_extract_integer(sobj);
|
|
|
|
i = (int) s48_extract_integer(sid);
|
|
|
|
|
|
|
|
tbl = lookup_pattern_property_by_id(obj);
|
|
|
|
rc = XftPatternGet(p, tbl->name, i, &v);
|
|
|
|
|
2003-10-25 09:47:23 -04:00
|
|
|
if (rc != XftResultMatch)
|
2003-10-10 12:33:07 -04:00
|
|
|
{
|
|
|
|
rl = s48_list_2(s48_enter_integer(rc), S48_UNSPECIFIC);
|
|
|
|
S48_GC_UNPROTECT();
|
|
|
|
return rl;
|
|
|
|
}
|
2003-10-25 09:47:23 -04:00
|
|
|
|
2003-10-10 12:33:07 -04:00
|
|
|
switch (tbl->type) {
|
|
|
|
case SCX_XFT_STRING:
|
|
|
|
rv = s48_enter_string(v.u.s);
|
|
|
|
break;
|
|
|
|
case SCX_XFT_DOUBLE:
|
|
|
|
rv = s48_enter_double(v.u.d);
|
|
|
|
break;
|
|
|
|
case SCX_XFT_INT:
|
|
|
|
rv = s48_enter_integer(v.u.i);
|
|
|
|
break;
|
|
|
|
case SCX_XFT_BOOL:
|
|
|
|
rv = v.u.b ? S48_TRUE : S48_FALSE;
|
|
|
|
break;
|
|
|
|
case SCX_XFT_UNIMPLEMENTED:
|
|
|
|
rv = S48_UNSPECIFIC;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
rl = s48_list_2(s48_enter_integer(rc), rv);
|
|
|
|
S48_GC_UNPROTECT();
|
|
|
|
return rl;
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftPatternAdd(s48_value sxp, s48_value sobj,
|
|
|
|
s48_value sval, s48_value sappend)
|
|
|
|
{
|
|
|
|
XftPattern *p;
|
|
|
|
XftValue v;
|
|
|
|
int obj;
|
|
|
|
Bool append, rv;
|
|
|
|
struct xft_pattern_property *tbl;
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(4);
|
2003-10-10 12:33:07 -04:00
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_PROTECT_4(sxp, sobj, sval, sappend);
|
2003-10-10 12:33:07 -04:00
|
|
|
p = scx_extract_xftpattern(sxp);
|
|
|
|
obj = s48_extract_integer(sobj);
|
|
|
|
append = S48_TRUE_P(sappend);
|
2003-10-25 12:24:46 -04:00
|
|
|
tbl = lookup_pattern_property_by_id(obj);
|
2003-10-10 12:33:07 -04:00
|
|
|
|
|
|
|
switch (tbl->type) {
|
|
|
|
case SCX_XFT_STRING:
|
|
|
|
v.type = XftTypeString;
|
|
|
|
v.u.s = s48_extract_string(sval);
|
|
|
|
break;
|
|
|
|
case SCX_XFT_DOUBLE:
|
|
|
|
v.type = XftTypeDouble;
|
|
|
|
v.u.d = s48_extract_double(sval);
|
|
|
|
break;
|
|
|
|
case SCX_XFT_INT:
|
|
|
|
v.type = XftTypeInteger;
|
|
|
|
v.u.i = s48_extract_integer(sval);
|
|
|
|
break;
|
|
|
|
case SCX_XFT_BOOL:
|
|
|
|
v.type = XftTypeBool;
|
|
|
|
v.u.b = S48_TRUE_P(sval) ? True : False;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
rv = XftPatternAdd(p, tbl->name, v, append);
|
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-10 12:33:07 -04:00
|
|
|
return rv ? S48_TRUE : S48_FALSE;
|
|
|
|
}
|
|
|
|
|
2003-10-17 02:31:06 -04:00
|
|
|
s48_value scx_XftFontMatch(s48_value sdpy, s48_value sscreenno, s48_value sxp)
|
2003-10-10 12:33:07 -04:00
|
|
|
{
|
|
|
|
XftPattern *p;
|
|
|
|
XftResult r;
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(3);
|
|
|
|
|
|
|
|
S48_GC_PROTECT_3(sdpy, sscreenno, sxp);
|
2003-10-13 11:27:19 -04:00
|
|
|
p = XftFontMatch((Display *) scx_extract_display(sdpy),
|
2003-10-17 02:31:06 -04:00
|
|
|
s48_extract_integer(sscreenno),
|
2003-10-10 12:33:07 -04:00
|
|
|
scx_extract_xftpattern(sxp),
|
|
|
|
&r);
|
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-10 12:33:07 -04:00
|
|
|
if (p == NULL)
|
2004-04-26 03:25:39 -04:00
|
|
|
return s48_list_2(S48_FALSE, S48_FALSE);
|
2003-10-10 12:33:07 -04:00
|
|
|
else
|
2004-04-30 08:48:04 -04:00
|
|
|
return s48_list_2(s48_enter_integer(r), scx_enter_xftpattern(p));
|
2003-10-10 12:33:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftFontOpenPattern(s48_value sdpy, s48_value sxp)
|
|
|
|
{
|
2003-10-21 11:32:22 -04:00
|
|
|
XftFont *xf;
|
2003-10-26 14:00:42 -05:00
|
|
|
XftPattern *p;
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(2);
|
|
|
|
|
|
|
|
S48_GC_PROTECT_2(sdpy, sxp);
|
2003-10-26 14:00:42 -05:00
|
|
|
p = scx_extract_xftpattern(sxp);
|
|
|
|
xf = XftFontOpenPattern(scx_extract_display(sdpy), p);
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-26 14:00:42 -05:00
|
|
|
return xf == NULL ? S48_FALSE : scx_enter_xftfont(xf, sdpy);
|
2003-10-10 12:33:07 -04:00
|
|
|
}
|
|
|
|
|
2003-10-17 02:31:06 -04:00
|
|
|
s48_value scx_XftFontOpenName(s48_value sdpy, s48_value sscreenno, s48_value sname)
|
2003-10-10 12:33:07 -04:00
|
|
|
{
|
2003-10-13 11:27:19 -04:00
|
|
|
XftFont *xf;
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(3);
|
2003-10-13 11:27:19 -04:00
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_PROTECT_3(sdpy, sscreenno, sname);
|
2003-10-17 02:31:06 -04:00
|
|
|
xf = XftFontOpenName(scx_extract_display(sdpy), s48_extract_integer(sscreenno),
|
2003-10-13 11:27:19 -04:00
|
|
|
s48_extract_string(sname));
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-26 14:00:42 -05:00
|
|
|
return xf == NULL ? S48_FALSE : scx_enter_xftfont(xf, sdpy);
|
2003-10-10 12:33:07 -04:00
|
|
|
}
|
|
|
|
|
2003-10-17 02:31:06 -04:00
|
|
|
s48_value scx_XftFontOpenXlfd(s48_value sdpy, s48_value sscreenno, s48_value sxlfd)
|
2003-10-10 12:33:07 -04:00
|
|
|
{
|
2003-10-13 11:27:19 -04:00
|
|
|
XftFont *xf;
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(3);
|
2003-10-13 11:27:19 -04:00
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_PROTECT_3(sdpy, sscreenno, sxlfd);
|
2003-10-17 02:31:06 -04:00
|
|
|
xf = XftFontOpenXlfd(scx_extract_display(sdpy), s48_extract_integer(sscreenno),
|
2003-10-13 11:27:19 -04:00
|
|
|
s48_extract_string(sxlfd));
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-26 14:00:42 -05:00
|
|
|
return xf == NULL ? S48_FALSE : scx_enter_xftfont(xf, sdpy);
|
2003-10-10 12:33:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftFontClose(s48_value sdpy, s48_value sxf)
|
|
|
|
{
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(2);
|
|
|
|
|
|
|
|
S48_GC_PROTECT_2(sdpy, sxf);
|
2003-10-10 12:33:07 -04:00
|
|
|
XftFontClose(scx_extract_display(sdpy),
|
|
|
|
scx_extract_xftfont(sxf));
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-10 12:33:07 -04:00
|
|
|
return S48_UNSPECIFIC;
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftDrawCreate(s48_value sdpy, s48_value sdrawable,
|
|
|
|
s48_value svisual, s48_value scolormap)
|
|
|
|
{
|
|
|
|
XftDraw *d;
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(4);
|
2003-10-10 12:33:07 -04:00
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_PROTECT_4(sdpy, sdrawable, svisual, scolormap);
|
2003-10-10 12:33:07 -04:00
|
|
|
d = XftDrawCreate(scx_extract_display(sdpy),
|
|
|
|
scx_extract_drawable(sdrawable),
|
|
|
|
scx_extract_visual(svisual),
|
|
|
|
scx_extract_colormap(scolormap));
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-10 12:33:07 -04:00
|
|
|
return scx_enter_xftdraw(d);
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftDrawCreateBitmap(s48_value sdpy, s48_value sdrawable)
|
|
|
|
{
|
|
|
|
XftDraw *d;
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(2);
|
2003-10-10 12:33:07 -04:00
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_PROTECT_2(sdpy, sdrawable);
|
2003-10-10 12:33:07 -04:00
|
|
|
d = XftDrawCreateBitmap(scx_extract_display(sdpy),
|
|
|
|
scx_extract_drawable(sdrawable));
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-10 12:33:07 -04:00
|
|
|
return scx_enter_xftdraw(d);
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftDrawChange(s48_value sxd, s48_value sdrawable)
|
|
|
|
{
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(2);
|
|
|
|
|
|
|
|
S48_GC_PROTECT_2(sxd, sdrawable);
|
2003-10-10 12:33:07 -04:00
|
|
|
XftDrawChange(scx_extract_xftdraw(sxd),
|
|
|
|
scx_extract_drawable(sdrawable));
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-10 12:33:07 -04:00
|
|
|
return S48_UNSPECIFIC;
|
|
|
|
}
|
2003-10-14 11:27:33 -04:00
|
|
|
|
|
|
|
|
2003-10-10 12:33:07 -04:00
|
|
|
s48_value scx_XftDrawDisplay(s48_value sxd)
|
|
|
|
{
|
2003-10-14 11:27:33 -04:00
|
|
|
#if SCX_XFT_VERSION > 1
|
2003-10-10 12:33:07 -04:00
|
|
|
return scx_enter_display(XftDrawDisplay(scx_extract_xftdraw(sxd)));
|
2003-10-14 11:27:33 -04:00
|
|
|
#else
|
|
|
|
return S48_FALSE;
|
|
|
|
#endif
|
2003-10-10 12:33:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftDrawDrawable(s48_value sxd)
|
|
|
|
{
|
2003-10-14 11:27:33 -04:00
|
|
|
#if SCX_XFT_VERSION > 1
|
2003-11-16 03:33:50 -05:00
|
|
|
return scx_enter_drawable(XftDrawDrawable(scx_extract_xftdraw(sxd)));
|
2003-10-14 11:27:33 -04:00
|
|
|
#else
|
|
|
|
return S48_FALSE;
|
|
|
|
#endif
|
2003-10-10 12:33:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftDrawColormap(s48_value sxd)
|
|
|
|
{
|
2003-10-14 11:27:33 -04:00
|
|
|
#if SCX_XFT_VERSION > 1
|
2003-10-10 12:33:07 -04:00
|
|
|
return scx_enter_colormap(XftDrawColormap(scx_extract_xftdraw(sxd)));
|
2003-10-14 11:27:33 -04:00
|
|
|
#else
|
|
|
|
return S48_FALSE;
|
|
|
|
#endif
|
2003-10-10 12:33:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftDrawVisual(s48_value sxd)
|
|
|
|
{
|
2003-10-14 11:27:33 -04:00
|
|
|
#if SCX_XFT_VERSION > 1
|
2003-10-10 12:33:07 -04:00
|
|
|
return scx_enter_visual(XftDrawVisual(scx_extract_xftdraw(sxd)));
|
2003-10-14 11:27:33 -04:00
|
|
|
#else
|
|
|
|
return S48_FALSE;
|
|
|
|
#endif
|
2003-10-10 12:33:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftDrawDestroy(s48_value sxd)
|
|
|
|
{
|
|
|
|
XftDrawDestroy(scx_extract_xftdraw(sxd));
|
|
|
|
return S48_UNSPECIFIC;
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftTextExtents8(s48_value sdpy, s48_value sxf, s48_value sstr)
|
|
|
|
{
|
2003-10-13 11:27:19 -04:00
|
|
|
XGlyphInfo *extents;
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(3);
|
2003-10-10 12:33:07 -04:00
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_PROTECT_3(sdpy, sxf, sstr);
|
2003-10-10 12:33:07 -04:00
|
|
|
XftTextExtents8(scx_extract_display(sdpy),
|
|
|
|
scx_extract_xftfont(sxf),
|
|
|
|
(XftChar8 *) s48_extract_string(sstr),
|
|
|
|
S48_STRING_LENGTH(sstr),
|
2003-10-13 11:27:19 -04:00
|
|
|
extents);
|
2003-10-10 12:33:07 -04:00
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-10 12:33:07 -04:00
|
|
|
return scx_enter_glyphinfo(extents);
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftDrawString8(s48_value sxd, s48_value sxc,
|
|
|
|
s48_value sxf, s48_value sx,
|
|
|
|
s48_value sy, s48_value sstr)
|
|
|
|
{
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(6);
|
|
|
|
|
|
|
|
S48_GC_PROTECT_6(sxd, sxc, sxf, sx, sy, sstr);
|
2003-10-10 12:33:07 -04:00
|
|
|
XftDrawString8(scx_extract_xftdraw(sxd), scx_extract_xftcolor(sxc),
|
|
|
|
scx_extract_xftfont(sxf),
|
|
|
|
s48_extract_integer(sx), s48_extract_integer(sy),
|
|
|
|
(XftChar8 *) s48_extract_string(sstr),
|
|
|
|
S48_STRING_LENGTH(sstr));
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-10 12:33:07 -04:00
|
|
|
return S48_UNSPECIFIC;
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftDrawRect(s48_value sxd, s48_value sxc,
|
|
|
|
s48_value sx, s48_value sy,
|
|
|
|
s48_value sw, s48_value sh)
|
|
|
|
{
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(6);
|
|
|
|
|
|
|
|
S48_GC_PROTECT_6(sxd, sxc, sx, sy, sw, sh);
|
2003-10-10 12:33:07 -04:00
|
|
|
XftDrawRect(scx_extract_xftdraw(sxd), scx_extract_xftcolor(sxc),
|
|
|
|
s48_extract_integer(sx), s48_extract_integer(sy),
|
|
|
|
s48_extract_integer(sw), s48_extract_integer(sh));
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-10 12:33:07 -04:00
|
|
|
return S48_UNSPECIFIC;
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftDrawSetClip(s48_value sxd, s48_value sreg)
|
|
|
|
{
|
2003-10-21 11:32:22 -04:00
|
|
|
Bool b;
|
|
|
|
S48_DECLARE_GC_PROTECT(2);
|
|
|
|
|
|
|
|
S48_GC_PROTECT_2(sxd, sreg);
|
|
|
|
b = XftDrawSetClip(scx_extract_xftdraw(sxd), scx_extract_region(sreg));
|
|
|
|
S48_GC_UNPROTECT();
|
|
|
|
return b ? S48_TRUE : S48_FALSE;
|
2003-10-10 12:33:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftObjectSetCreate(void)
|
|
|
|
{
|
|
|
|
return scx_enter_xftobjectset(XftObjectSetCreate());
|
|
|
|
}
|
|
|
|
|
2003-10-16 12:03:19 -04:00
|
|
|
s48_value scx_XftObjectSetDestroy(s48_value sxo)
|
|
|
|
{
|
|
|
|
XftObjectSetDestroy(scx_extract_xftobjectset(sxo));
|
|
|
|
return S48_UNSPECIFIC;
|
|
|
|
}
|
|
|
|
|
2003-10-10 12:33:07 -04:00
|
|
|
s48_value scx_XftObjectSetAdd(s48_value sxo, s48_value sobj)
|
|
|
|
{
|
|
|
|
struct xft_pattern_property *tbl;
|
|
|
|
Bool b;
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(2);
|
2003-10-10 12:33:07 -04:00
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_PROTECT_2(sxo, sobj);
|
2003-10-10 12:33:07 -04:00
|
|
|
tbl = lookup_pattern_property_by_id(s48_extract_integer(sobj));
|
|
|
|
b = XftObjectSetAdd(scx_extract_xftobjectset(sxo), tbl->name);
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-10 12:33:07 -04:00
|
|
|
return b ? S48_TRUE : S48_FALSE;
|
|
|
|
}
|
|
|
|
|
2003-10-17 02:31:06 -04:00
|
|
|
s48_value scx_XftListFontsPatternObjects(s48_value sdpy, s48_value sscreenno,
|
2003-10-10 12:33:07 -04:00
|
|
|
s48_value sxp, s48_value sxo)
|
|
|
|
{
|
|
|
|
XftFontSet *fs;
|
2003-11-16 10:18:21 -05:00
|
|
|
#if XFT_VERSION > 1
|
|
|
|
FcConfig *fcc;
|
|
|
|
#endif
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(4);
|
2003-10-10 12:33:07 -04:00
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_PROTECT_4(sdpy, sscreenno, sxp, sxo);
|
2003-11-16 03:33:50 -05:00
|
|
|
#if XFT_VERSION > 1
|
2003-11-16 10:18:21 -05:00
|
|
|
fcc = FcConfigGetCurrent();
|
|
|
|
fs = FcFontList(fcc, scx_extract_xftpattern(sxp),
|
2003-11-16 03:33:50 -05:00
|
|
|
scx_extract_xftobjectset(sxo));
|
|
|
|
#else
|
2003-10-10 12:33:07 -04:00
|
|
|
fs = XftListFontsPatternObjects(scx_extract_display(sdpy),
|
2003-10-17 02:31:06 -04:00
|
|
|
s48_extract_integer(sscreenno),
|
2003-10-13 11:27:19 -04:00
|
|
|
scx_extract_xftpattern(sxp),
|
|
|
|
scx_extract_xftobjectset(sxo));
|
2003-11-16 03:33:50 -05:00
|
|
|
#endif
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-13 11:27:19 -04:00
|
|
|
return scx_enter_xftfontset(fs);
|
2003-10-10 12:33:07 -04:00
|
|
|
}
|
|
|
|
|
2003-10-17 02:31:06 -04:00
|
|
|
s48_value scx_XftFontSetCreate(void)
|
|
|
|
{
|
2003-11-16 03:33:50 -05:00
|
|
|
#if XFT_VERSION > 1
|
|
|
|
return scx_enter_xftfontset(FcFontSetCreate());
|
|
|
|
#else
|
2003-10-17 02:31:06 -04:00
|
|
|
return scx_enter_xftfontset(XftFontSetCreate());
|
2003-11-16 03:33:50 -05:00
|
|
|
#endif
|
2003-10-17 02:31:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftFontSetDestroy(s48_value sxfs)
|
|
|
|
{
|
|
|
|
XftFontSetDestroy(scx_extract_xftfontset(sxfs));
|
|
|
|
return S48_UNSPECIFIC;
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftFontSetAdd(s48_value sxfs, s48_value sxp)
|
|
|
|
{
|
|
|
|
Bool b;
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(2);
|
|
|
|
|
|
|
|
S48_GC_PROTECT_2(sxfs, sxp);
|
2003-11-16 03:33:50 -05:00
|
|
|
#if XFT_VERSION > 1
|
|
|
|
b = FcFontSetAdd(scx_extract_xftfontset(sxfs),
|
|
|
|
scx_extract_xftpattern(sxp));
|
|
|
|
#else
|
2003-10-17 02:31:06 -04:00
|
|
|
b = XftFontSetAdd(scx_extract_xftfontset(sxfs),
|
|
|
|
scx_extract_xftpattern(sxp));
|
2003-11-16 03:33:50 -05:00
|
|
|
#endif
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-17 02:31:06 -04:00
|
|
|
return b ? S48_TRUE : S48_FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftColorAllocName(s48_value sdpy, s48_value svisual,
|
|
|
|
s48_value scolormap, s48_value sname)
|
|
|
|
{
|
2003-10-21 11:32:22 -04:00
|
|
|
s48_value res = S48_FALSE;
|
2003-10-23 13:17:09 -04:00
|
|
|
XftColor *xftcolor;
|
|
|
|
Bool b = False;
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(5);
|
2003-10-17 02:31:06 -04:00
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_PROTECT_5(res, sdpy, svisual, scolormap, sname);
|
2003-10-23 13:17:09 -04:00
|
|
|
if ((xftcolor = (XftColor *) calloc(1, sizeof(XftColor))) != NULL)
|
|
|
|
b = XftColorAllocName(scx_extract_display(sdpy), scx_extract_visual(svisual),
|
|
|
|
scx_extract_colormap(scolormap), s48_extract_string(sname),
|
|
|
|
xftcolor);
|
2003-10-17 02:31:06 -04:00
|
|
|
res = s48_list_2(b ? S48_TRUE : S48_FALSE,
|
|
|
|
b ? scx_enter_xftcolor(xftcolor) : S48_FALSE);
|
|
|
|
S48_GC_UNPROTECT();
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
2003-10-21 11:32:22 -04:00
|
|
|
s48_value scx_XftColorAllocValue(s48_value sdpy, s48_value svisual,
|
|
|
|
s48_value scolormap, s48_value sxrendercolor)
|
|
|
|
{
|
|
|
|
s48_value res = S48_FALSE;
|
2003-10-24 02:27:02 -04:00
|
|
|
XftColor *xftcolor;
|
|
|
|
Bool b = False;
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(5);
|
|
|
|
|
|
|
|
S48_GC_PROTECT_5(res, sdpy, svisual, scolormap, sxrendercolor);
|
2003-10-24 02:27:02 -04:00
|
|
|
if ((xftcolor = (XftColor *) calloc(1, sizeof(XftColor))) != NULL)
|
|
|
|
b = XftColorAllocValue(scx_extract_display(sdpy), scx_extract_visual(svisual),
|
|
|
|
scx_extract_colormap(scolormap),
|
|
|
|
scx_extract_xrendercolor(sxrendercolor),
|
|
|
|
xftcolor);
|
2003-10-21 11:32:22 -04:00
|
|
|
res = s48_list_2(b ? S48_TRUE : S48_FALSE,
|
|
|
|
b ? scx_enter_xftcolor(xftcolor) : S48_FALSE);
|
|
|
|
S48_GC_UNPROTECT();
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
|
2003-10-17 02:31:06 -04:00
|
|
|
s48_value scx_XftColorFree(s48_value sdpy, s48_value svisual,
|
|
|
|
s48_value scolormap, s48_value sxc)
|
|
|
|
{
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_DECLARE_GC_PROTECT(4);
|
|
|
|
|
|
|
|
S48_GC_PROTECT_4(sdpy, svisual, scolormap, sxc);
|
2003-10-17 02:31:06 -04:00
|
|
|
XftColorFree(scx_extract_display(sdpy), scx_extract_visual(svisual),
|
|
|
|
scx_extract_colormap(scolormap), scx_extract_xftcolor(sxc));
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_GC_UNPROTECT();
|
2003-10-17 02:31:06 -04:00
|
|
|
return S48_UNSPECIFIC;
|
|
|
|
}
|
|
|
|
|
2003-10-17 02:34:45 -04:00
|
|
|
s48_value scx_XftPatternPrint(s48_value sxp)
|
|
|
|
{
|
2003-11-16 03:33:50 -05:00
|
|
|
#if XFT_VERSION > 1
|
|
|
|
FcPatternPrint(scx_extract_xftpattern(sxp));
|
|
|
|
#else
|
2003-10-17 02:34:45 -04:00
|
|
|
XftPatternPrint(scx_extract_xftpattern(sxp));
|
2003-11-16 03:33:50 -05:00
|
|
|
#endif
|
2003-10-17 02:34:45 -04:00
|
|
|
return S48_UNSPECIFIC;
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_XftFontSetPrint(s48_value sxfs)
|
|
|
|
{
|
2003-11-16 03:33:50 -05:00
|
|
|
#if XFT_VERSION > 1
|
|
|
|
FcFontSetPrint(scx_extract_xftfontset(sxfs));
|
|
|
|
#else
|
2003-10-17 02:34:45 -04:00
|
|
|
XftFontSetPrint(scx_extract_xftfontset(sxfs));
|
2003-11-16 03:33:50 -05:00
|
|
|
#endif
|
2003-10-17 02:34:45 -04:00
|
|
|
return S48_UNSPECIFIC;
|
|
|
|
}
|
2003-10-10 12:33:07 -04:00
|
|
|
|
2003-10-17 04:34:53 -04:00
|
|
|
s48_value scx_XftDefaultHasRender(s48_value sdpy)
|
|
|
|
{
|
|
|
|
return XftDefaultHasRender(scx_extract_display(sdpy)) ? S48_TRUE : S48_FALSE;
|
|
|
|
}
|
|
|
|
|
2003-10-26 14:00:42 -05:00
|
|
|
s48_value scx_XftDefaultSubstitute(s48_value sdpy, s48_value sscreen, s48_value spat)
|
|
|
|
{
|
|
|
|
S48_DECLARE_GC_PROTECT(3);
|
|
|
|
|
|
|
|
S48_GC_PROTECT_3(sdpy, sscreen, spat);
|
|
|
|
XftDefaultSubstitute(scx_extract_display(sdpy), s48_extract_integer(sscreen),
|
|
|
|
scx_extract_xftpattern(spat));
|
|
|
|
S48_GC_UNPROTECT();
|
|
|
|
return S48_UNSPECIFIC;
|
|
|
|
}
|
|
|
|
|
2003-10-26 11:42:31 -05:00
|
|
|
#define XFTFONT_GET(FUN, FN) \
|
|
|
|
s48_value FUN(s48_value sxf) { \
|
|
|
|
return s48_enter_integer(scx_extract_xftfont(sxf)->FN); \
|
|
|
|
}
|
|
|
|
|
|
|
|
XFTFONT_GET(scx_xftfont_ascent_get, ascent);
|
|
|
|
XFTFONT_GET(scx_xftfont_descent_get, descent);
|
|
|
|
XFTFONT_GET(scx_xftfont_height_get, height);
|
|
|
|
XFTFONT_GET(scx_xftfont_max_advance_width_get, max_advance_width);
|
|
|
|
|
|
|
|
s48_value scx_xftfont_pattern_get_internal(s48_value sxf)
|
|
|
|
{
|
|
|
|
return scx_enter_xftpattern(scx_extract_xftfont(sxf)->pattern);
|
|
|
|
}
|
2003-10-17 04:34:53 -04:00
|
|
|
|
2003-10-26 14:00:42 -05:00
|
|
|
s48_value scx_xftfontset_count_get(s48_value sxfs)
|
|
|
|
{
|
|
|
|
return s48_enter_integer(scx_extract_xftfontset(sxfs)->nfont);
|
|
|
|
}
|
|
|
|
|
|
|
|
s48_value scx_xftfontset_pattern_ref(s48_value sxfs, s48_value index)
|
|
|
|
{
|
|
|
|
int i;
|
|
|
|
XftFontSet *xfs;
|
|
|
|
S48_DECLARE_GC_PROTECT(2);
|
|
|
|
|
|
|
|
S48_GC_PROTECT_2(sxfs, index);
|
|
|
|
i = s48_extract_integer(index);
|
|
|
|
xfs = scx_extract_xftfontset(sxfs);
|
|
|
|
S48_GC_UNPROTECT();
|
|
|
|
|
2004-04-26 03:25:39 -04:00
|
|
|
if ((i >= 0) && (i < xfs->nfont))
|
2003-10-26 14:00:42 -05:00
|
|
|
return scx_enter_xftpattern(xfs->fonts[i]);
|
|
|
|
else
|
|
|
|
return S48_FALSE;
|
|
|
|
}
|
|
|
|
|
2003-10-10 12:33:07 -04:00
|
|
|
void scx_xft_init(void)
|
|
|
|
{
|
2003-11-16 03:33:50 -05:00
|
|
|
#if XFT_VERSION > 1
|
2003-11-16 10:18:21 -05:00
|
|
|
FcInit();
|
2003-11-16 03:33:50 -05:00
|
|
|
#endif
|
|
|
|
|
2003-10-16 12:03:19 -04:00
|
|
|
XFT_GC_PROTECT_IMPORT_BINDING(scx_xftpattern_record_type, "xft-pattern");
|
2003-10-16 13:08:19 -04:00
|
|
|
XFT_GC_PROTECT_IMPORT_BINDING(scx_xftfont_record_type, "xft-font");
|
2003-10-16 12:03:19 -04:00
|
|
|
XFT_GC_PROTECT_IMPORT_BINDING(scx_xftdraw_record_type, "xft-draw");
|
|
|
|
XFT_GC_PROTECT_IMPORT_BINDING(scx_xftcolor_record_type, "xft-color");
|
|
|
|
XFT_GC_PROTECT_IMPORT_BINDING(scx_xftobjectset_record_type, "xft-objectset");
|
|
|
|
XFT_GC_PROTECT_IMPORT_BINDING(scx_xftfontset_record_type, "xft-fontset");
|
|
|
|
|
2003-10-25 09:20:47 -04:00
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-result-match", scx_XftResultMatch,
|
2003-10-16 12:03:19 -04:00
|
|
|
XftResultMatch);
|
2003-10-25 09:20:47 -04:00
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-result-no-match", scx_XftResultNoMatch,
|
2003-10-16 12:03:19 -04:00
|
|
|
XftResultNoMatch);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-result-type-mismatch", scx_XftResultTypeMismatch,
|
|
|
|
XftResultTypeMismatch);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-result-no-id", scx_XftResultNoId,
|
|
|
|
XftResultNoId);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-version-major", scx_XftVersionMajor,
|
|
|
|
SCX_XFT_VERSION_MAJOR);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-version-minor", scx_XftVersionMinor,
|
|
|
|
SCX_XFT_VERSION_MINOR);
|
2003-10-10 12:33:07 -04:00
|
|
|
|
2003-10-25 09:20:47 -04:00
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-family", scx_xft_pattern_family,
|
|
|
|
SCX_XFT_FAMILY);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-style", scx_xft_pattern_style,
|
|
|
|
SCX_XFT_STYLE);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-slant", scx_xft_pattern_slant,
|
|
|
|
SCX_XFT_SLANT);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-weight", scx_xft_pattern_weight,
|
|
|
|
SCX_XFT_WEIGHT);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-size", scx_xft_pattern_size,
|
|
|
|
SCX_XFT_SIZE);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-pixel-size", scx_xft_pattern_pixel_size,
|
|
|
|
SCX_XFT_PIXEL_SIZE);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-encoding", scx_xft_pattern_encoding,
|
|
|
|
SCX_XFT_ENCODING);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-spacing", scx_xft_pattern_spacing,
|
|
|
|
SCX_XFT_SPACING);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-foundry", scx_xft_pattern_foundry,
|
|
|
|
SCX_XFT_FOUNDRY);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-core", scx_xft_pattern_core,
|
|
|
|
SCX_XFT_CORE);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-antialias", scx_xft_pattern_antialias,
|
|
|
|
SCX_XFT_ANTIALIAS);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-xlfd", scx_xft_pattern_xlfd,
|
|
|
|
SCX_XFT_XLFD);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-file", scx_xft_pattern_file,
|
|
|
|
SCX_XFT_FILE);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-index", scx_xft_pattern_index,
|
|
|
|
SCX_XFT_INDEX);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-rasterizer", scx_xft_pattern_rasterizer,
|
|
|
|
SCX_XFT_RASTERIZER);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-outline", scx_xft_pattern_outline,
|
|
|
|
SCX_XFT_OUTLINE);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-scalable", scx_xft_pattern_scalable,
|
|
|
|
SCX_XFT_SCALABLE);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-rgba", scx_xft_pattern_rgba,
|
|
|
|
SCX_XFT_RGBA);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-scale", scx_xft_pattern_scale,
|
|
|
|
SCX_XFT_SCALE);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-render", scx_xft_pattern_render,
|
|
|
|
SCX_XFT_RENDER);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-minspace", scx_xft_pattern_minspace,
|
|
|
|
SCX_XFT_MINSPACE);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-dpi", scx_xft_pattern_dpi,
|
|
|
|
SCX_XFT_DPI);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-char-width", scx_xft_pattern_char_width,
|
|
|
|
SCX_XFT_CHAR_WIDTH);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-pattern-char-height", scx_xft_pattern_char_height,
|
|
|
|
SCX_XFT_CHAR_HEIGHT);
|
|
|
|
|
2003-10-25 12:24:46 -04:00
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-weight-light", scx_xft_weight_light,
|
|
|
|
XFT_WEIGHT_LIGHT);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-weight-medium", scx_xft_weight_medium,
|
|
|
|
XFT_WEIGHT_MEDIUM);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-weight-demibold", scx_xft_weight_demibold,
|
|
|
|
XFT_WEIGHT_DEMIBOLD);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-weight-bold", scx_xft_weight_bold,
|
|
|
|
XFT_WEIGHT_BOLD);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-weight-black", scx_xft_weight_black,
|
|
|
|
XFT_WEIGHT_BLACK);
|
|
|
|
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-slant-roman", scx_xft_slant_roman,
|
|
|
|
XFT_SLANT_ROMAN);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-slant-italic", scx_xft_slant_italic,
|
|
|
|
XFT_SLANT_ITALIC);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-slant-oblique", scx_xft_slant_oblique,
|
|
|
|
XFT_SLANT_OBLIQUE);
|
|
|
|
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-spacing-proportional", scx_xft_spacing_proportional,
|
|
|
|
XFT_PROPORTIONAL);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-spacing-mono", scx_xft_spacing_mono,
|
|
|
|
XFT_MONO);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-spacing-charcell", scx_xft_spacing_charcell,
|
|
|
|
XFT_CHARCELL);
|
|
|
|
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-rgba-none", scx_xft_rgba_none,
|
|
|
|
XFT_RGBA_NONE);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-rgba-rgb", scx_xft_rgba_rgb,
|
|
|
|
XFT_RGBA_RGB);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-rgba-bgr", scx_xft_rgba_bgr,
|
|
|
|
XFT_RGBA_BGR);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-rgba-vrgb", scx_xft_rgba_vrgb,
|
|
|
|
XFT_RGBA_VRGB);
|
|
|
|
SCX_EXPORT_INTEGER_TO_S48("scx-xft-rgba-vbgr", scx_xft_rgba_vbgr,
|
|
|
|
XFT_RGBA_VBGR);
|
|
|
|
|
2003-10-10 12:33:07 -04:00
|
|
|
S48_EXPORT_FUNCTION(scx_XftPatternCreate);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftPatternDestroy);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftPatternDuplicate);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftPatternGet);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftPatternAdd);
|
|
|
|
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftFontMatch);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftFontOpenPattern);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftFontOpenName);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftFontOpenXlfd);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftFontClose);
|
|
|
|
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftDrawCreate);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftDrawCreateBitmap);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftDrawChange);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftDrawDisplay);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftDrawDrawable);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftDrawColormap);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftDrawVisual);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftDrawDestroy);
|
|
|
|
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftTextExtents8);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftDrawString8);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftDrawRect);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftDrawSetClip);
|
|
|
|
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftObjectSetCreate);
|
2003-10-16 12:03:19 -04:00
|
|
|
S48_EXPORT_FUNCTION(scx_XftObjectSetDestroy);
|
2003-10-10 12:33:07 -04:00
|
|
|
S48_EXPORT_FUNCTION(scx_XftObjectSetAdd);
|
2003-10-17 02:31:06 -04:00
|
|
|
S48_EXPORT_FUNCTION(scx_XftListFontsPatternObjects);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftFontSetCreate);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftFontSetDestroy);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftFontSetAdd);
|
|
|
|
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftColorAllocName);
|
2003-10-21 11:32:22 -04:00
|
|
|
S48_EXPORT_FUNCTION(scx_XftColorAllocValue);
|
2003-10-17 02:31:06 -04:00
|
|
|
S48_EXPORT_FUNCTION(scx_XftColorFree);
|
2003-10-17 02:34:45 -04:00
|
|
|
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftPatternPrint);
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftFontSetPrint);
|
2003-10-17 04:34:53 -04:00
|
|
|
|
|
|
|
S48_EXPORT_FUNCTION(scx_XftDefaultHasRender);
|
2003-10-26 14:00:42 -05:00
|
|
|
S48_EXPORT_FUNCTION(scx_XftDefaultSubstitute);
|
2003-10-26 11:42:31 -05:00
|
|
|
|
|
|
|
S48_EXPORT_FUNCTION(scx_xftfont_ascent_get);
|
|
|
|
S48_EXPORT_FUNCTION(scx_xftfont_descent_get);
|
|
|
|
S48_EXPORT_FUNCTION(scx_xftfont_height_get);
|
|
|
|
S48_EXPORT_FUNCTION(scx_xftfont_max_advance_width_get);
|
|
|
|
S48_EXPORT_FUNCTION(scx_xftfont_pattern_get_internal);
|
2003-10-26 14:00:42 -05:00
|
|
|
S48_EXPORT_FUNCTION(scx_xftfontset_count_get);
|
|
|
|
S48_EXPORT_FUNCTION(scx_xftfontset_pattern_ref);
|
2003-10-10 12:33:07 -04:00
|
|
|
}
|