diff options
Diffstat (limited to 'xc/lib/Xft/Xft.h')
-rw-r--r-- | xc/lib/Xft/Xft.h | 182 |
1 files changed, 149 insertions, 33 deletions
diff --git a/xc/lib/Xft/Xft.h b/xc/lib/Xft/Xft.h index 38e48733e..618372f7a 100644 --- a/xc/lib/Xft/Xft.h +++ b/xc/lib/Xft/Xft.h @@ -1,5 +1,5 @@ /* - * $XFree86: xc/lib/Xft/Xft.h,v 1.4 2000/11/29 08:39:20 keithp Exp $ + * $XFree86: xc/lib/Xft/Xft.h,v 1.10 2000/12/03 19:03:22 keithp Exp $ * * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc. * @@ -51,6 +51,10 @@ #define XFT_SCALE "scale" /* double */ #define XFT_RENDER "render" /* Bool */ +/* specific to FreeType rasterizer */ +#define XFT_CHAR_WIDTH "charwidth" /* Int */ +#define XFT_CHAR_HEIGHT "charheight"/* Int */ + #define XFT_WEIGHT_LIGHT 0 #define XFT_WEIGHT_MEDIUM 100 #define XFT_WEIGHT_DEMIBOLD 180 @@ -113,21 +117,6 @@ typedef struct _XftFontSet { XftPattern **fonts; } XftFontSet; -XftFontSet * -XftFontSetCreate (void); - -void -XftFontSetDestroy (XftFontSet *s); - -Bool -XftFontSetAdd (XftFontSet *s, XftPattern *font); - -void -XftPatternPrint (XftPattern *p); - -XftPattern * -XftMatchFont (Display *dpy, int screen, XftPattern *pattern, XftResult *result); - typedef struct _XftFontStruct XftFontStruct; typedef struct _XftFont { @@ -149,21 +138,44 @@ typedef struct _XftFont { typedef struct _XftDraw XftDraw; -XftFont * -XftOpenFont (Display *dpy, XftPattern *pattern); +typedef struct _XftColor { + unsigned long pixel; + XRenderColor color; +} XftColor; -XftFont * -XftPatternOpenFont (Display *dpy, int screen, ...); - +typedef struct _XftObjectSet { + int nobject; + int sobject; + const char **objects; +} XftObjectSet; + +/* xftcfg.c */ Bool -XftDefaultSet (Display *dpy, XftPattern *defaults); +XftConfigSubstitute (XftPattern *p); -XftPattern * -XftNameParse (const char *name); +/* xftcolor.c */ +Bool +XftColorAllocName (Display *dpy, + Visual *visual, + Colormap cmap, + char *name, + XftColor *result); -XftFont * -XftNameOpenFont (Display *dpy, int screen, const char *name); +Bool +XftColorAllocValue (Display *dpy, + Visual *visual, + Colormap cmap, + XRenderColor *color, + XftColor *result); + +void +XftColorFree (Display *dpy, + Visual *visual, + Colormap cmap, + XftColor *color); + +/* xftcore.c */ /* xftdbg.c */ void XftValuePrint (XftValue v); @@ -179,6 +191,15 @@ XftFontSetPrint (XftFontSet *s); /* xftdir.c */ /* xftdpy.c */ +Bool +XftDefaultHasRender (Display *dpy); + +Bool +XftDefaultSet (Display *dpy, XftPattern *defaults); + +void +XftDefaultSubstitute (Display *dpy, int screen, XftPattern *pattern); + /* xftdraw.c */ XftDraw * @@ -188,11 +209,15 @@ XftDrawCreate (Display *dpy, Colormap colormap); void -XftDrawDestroy (XftDraw *d); +XftDrawChange (XftDraw *draw, + Drawable drawable); + +void +XftDrawDestroy (XftDraw *draw); void XftDrawString8 (XftDraw *d, - XRenderColor *color, + XftColor *color, XftFont *font, int x, int y, @@ -201,7 +226,7 @@ XftDrawString8 (XftDraw *d, void XftDrawString16 (XftDraw *draw, - XRenderColor *color, + XftColor *color, XftFont *font, int x, int y, @@ -210,15 +235,15 @@ XftDrawString16 (XftDraw *draw, void XftDrawString32 (XftDraw *draw, - XRenderColor *color, + XftColor *color, XftFont *font, int x, int y, - unsigned long *string, + unsigned int *string, int len); void XftDrawRect (XftDraw *d, - XRenderColor *color, + XftColor *color, int x, int y, unsigned int width, @@ -244,7 +269,7 @@ XftTextExtents16 (Display *dpy, void XftTextExtents32 (Display *dpy, XftFont *font, - unsigned long *string, + unsigned int *string, int len, XGlyphInfo *extents); @@ -261,12 +286,82 @@ XftFontOpen (Display *dpy, int screen, ...); XftFont * XftFontOpenName (Display *dpy, int screen, const char *name); +XftFont * +XftFontOpenXlfd (Display *dpy, int screen, const char *xlfd); + void XftFontClose (Display *dpy, XftFont *font); +Bool +XftGlyphExists (Display *dpy, XftFont *font, unsigned int glyph); + /* xftfreetype.c */ /* xftfs.c */ +XftFontSet * +XftFontSetCreate (void); + +void +XftFontSetDestroy (XftFontSet *s); + +Bool +XftFontSetAdd (XftFontSet *s, XftPattern *font); + +/* xftglyphs.c */ +/* see XftFreetype.h */ + +/* xftgram.y */ + +/* xftinit.c */ +Bool +XftInit (char *config); + +/* xftlex.l */ + +/* xftlist.c */ +XftObjectSet * +XftObjectSetCreate (void); + +Bool +XftObjectSetAdd (XftObjectSet *os, const char *object); + +void +XftObjectSetDestroy (XftObjectSet *os); + +XftObjectSet * +XftObjectSetVaBuild (const char *first, va_list va); + +XftObjectSet * +XftObjectSetBuild (const char *first, ...); + +XftFontSet * +XftListFontSets (XftFontSet **sets, + int nsets, + XftPattern *p, + XftObjectSet *os); + +XftFontSet * +XftListFontsPatternObjects (Display *dpy, + int screen, + XftPattern *pattern, + XftObjectSet *os); + +XftFontSet * +XftListFonts (Display *dpy, + int screen, + ...); + +/* xftmatch.c */ +XftPattern * +XftFontSetMatch (XftFontSet **sets, + int nsets, + XftPattern *p, + XftResult *result); + +/* xftname.c */ +XftPattern * +XftNameParse (const char *name); + /* xftpat.c */ XftPattern * XftPatternCreate (void); @@ -275,8 +370,17 @@ XftPattern * XftPatternDuplicate (XftPattern *p); void +XftValueDestroy (XftValue v); + +void +XftValueListDestroy (XftValueList *l); + +void XftPatternDestroy (XftPattern *p); +XftPatternElt * +XftPatternFind (XftPattern *p, const char *object, Bool insert); + Bool XftPatternAdd (XftPattern *p, const char *object, XftValue value, Bool append); @@ -316,4 +420,16 @@ XftPatternVaBuild (XftPattern *orig, va_list va); XftPattern * XftPatternBuild (XftPattern *orig, ...); +/* xftrender.c */ +/* see XftFreetype.h */ + +/* xftstr.c */ + +/* xftxlfd.c */ +XftPattern * +XftXlfdParse (const char *xlfd_orig, Bool ignore_scalable, Bool complete); + +XFontStruct * +XftCoreOpen (Display *dpy, XftPattern *pattern); + #endif /* _XFT_H_ */ |