Back to index

plt-scheme  4.2.1
xwTabString.h
Go to the documentation of this file.
00001 /*
00002  *     Functions for drawing String's with tab characters in them
00003  */
00004 
00005 #ifdef WX_USE_XFT
00006 # include <X11/Xft/Xft.h>
00007 #endif
00008 
00009 #if (NeedFunctionPrototypes > 0)
00010 
00011 #ifdef WX_USE_XFT
00012 # define wxExtFont XftFont*
00013 # define wxEXT_FONT(x) x
00014 # define wx_ASCENT(f, xf) (xf ? xf->ascent : (f ? f->ascent : 10))
00015 # define wx_DESCENT(f, xf) (xf ? xf->descent : (f ? f->descent : 4))
00016 #else
00017 # define wxExtFont void*
00018 # define wxEXT_FONT(x) NULL
00019 # define wx_ASCENT(f, xf) (f->ascent)
00020 # define wx_DESCENT(f, xf) (f->descent)
00021 #endif
00022 
00023 extern void   XfwfDrawImageString(Display *display, Drawable drawable,
00024                                 GC gc, int x, int y, String string, int length,
00025                                 int *tabs, XFontStruct *fnt, wxExtFont f, int xon, 
00026                                 Region clip);
00027 extern void     XfwfDrawString(Display *display, Drawable drawable,
00028                             GC gc, int x, int y, String string, int length,
00029                             int *tabs, XFontStruct *fnt, wxExtFont f, 
00030                             int xon, int drawLine, Region clip, int doamps);
00031 extern int *  XfwfTablist2Tabs(char *tablist);
00032 extern int    XfwfTextWidth(Display *display, XFontStruct *font, wxExtFont f, String str, int length,
00033                            int *tabs);
00034 extern char * strnchr(char *s, int c, int n);
00035 
00036 extern void wxDrawBitmapLabel(Display *display, 
00037                            Pixmap pixmap, Pixmap maskmap, 
00038                            Drawable drawable, GC gc,
00039                            int x, int y, int width, int height, 
00040                            int depth, int mask_depth,
00041                            Region reg,
00042                            GC gray_gc,
00043                            Pixel bg_pixel);
00044 
00045 #else
00046 
00047 extern void   XfwfDrawImageString();
00048 extern void   XfwfDrawString();
00049 extern void   XtabDrawString();
00050 extern int *  XfwfTablist2Tabs();
00051 extern int    XfwfTextWidth();
00052 extern char * strnchr();
00053 
00054 #endif
00055 
00056 extern int wx_enough_colors(Screen *s);