Mercurial > kinput2.yaz
diff include/CachedFont.h @ 0:92745d501b9a
initial import from kinput2-v3.1
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Mon, 08 Mar 2010 04:44:30 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/CachedFont.h Mon Mar 08 04:44:30 2010 +0900 @@ -0,0 +1,85 @@ +/* $Id: CachedFont.h,v 1.3 1999/01/07 03:06:20 ishisone Exp $ */ +/* + * Copyright (c) 1991 Software Research Associates, Inc. + * + * Permission to use, copy, modify, and distribute this software and its + * documentation for any purpose and without fee is hereby granted, provided + * that the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation, and that the name of Software Research Associates not be + * used in advertising or publicity pertaining to distribution of the + * software without specific, written prior permission. Software Research + * Associates makes no representations about the suitability of this software + * for any purpose. It is provided "as is" without express or implied + * warranty. + * + * Author: Makoto Ishisone, Software Research Associates, Inc., Japan + */ + +#ifndef _CachedFont_h +#define _CachedFont_h + +/* + * XFontStruct *CachedLoadQueryFontByName(Display *dpy, String name) + * XLoadQueryFont() $B$H$[$\F1$8$@$,!";XDj$5$l$?%U%)%s%H$,(B + * $B$9$G$K%*!<%W%s$5$l$F$$$l$P$=$l$rJV$9!#(B + */ +extern XFontStruct *CachedLoadQueryFontByName( +#if NeedFunctionPrototypes + Display * /* dpy */, + String /* name */ +#endif +); + +/* + * XFontStruct *CachedLoadQueryFontByProp(Display *dpy, Atom atom) + * CachedLoadQueryFontByName() $B$H$[$\F1$8$@$,!"%U%)%s%HL>$G$O$J$/!"(B + * $B$=$l$r%"%H%`$K$7$?$b$N(B ($B$D$^$j%U%)%s%H$N(B "FONT" $B%W%m%Q%F%#$NCM(B) + * $B$G;XDj$9$k!#(B + * $B$3$l$O$3$N%"%H%`$NCM(B ($B$*$h$S$3$N%"%H%`$KBP1~$9$kJ8;zNs$G$"$k@5<0$J(B + * $B%U%)%s%HL>(B) $B$,M#0l%U%)%s%H$N<BBN$KBP$7$F(B unique $B$JCM$@$H9M$($i$l$k(B + * $B$+$i$G$"$k!#(B + */ +extern XFontStruct *CachedLoadQueryFontByProp( +#if NeedFunctionPrototypes + Display * /* dpy */, + Atom /* atom */ +#endif +); + +/* + * XFontStruct *CachedLoadFontByFontStruct(Display *dpy, XFontStruct *font) + * CachedFreeFont() $B$G0lEY;HMQ$7$J$/$J$C$?%U%)%s%H$r:F$S%m!<%I$9$k$N$K(B + * $BMQ$$$k!#$9$G$K%m!<%I$5$l$F$$$l$P$=$N%U%)%s%H$N%j%U%!%l%s%9%+%&%s%H$r(B + * $BA}$d$9$@$1$G$"$k!#(B + * $B$b$7;XDj$5$l$?(B font $B$,(B CachedLoadQueryFontByName() $B$^$?$O(B + * CachedLoadQueryFontByProp() $B$r;HMQ$7$F:n$i$l$?$b$N$G$O$J$$;~$K$O(B + * NULL $B$,JV$k!#$=$&$G$J$$;~$K$O(B font $B$NCM$,$=$N$^$^JV$5$l$k!#(B + */ +extern XFontStruct *CachedLoadFontByFontStruct( +#if NeedFunctionPrototypes + Display * /* dpy */, + XFontStruct * /* font */ +#endif +); + +/* + * void CachedFreeFont(Display *dpy, XFontStruct *font) + * CachedLoadQueryFontByName() $B$^$?$O(B CachedLoadQueryFontByProp() $B$G(B + * $BF@$i$l$?%U%)%s%H$r;HMQ$7$J$/$J$C$?;~$K8F$V!#(B + * XFreeFont() $B$H$[$\F1$8$@$,!"%U%)%s%H>pJs$r%-%c%C%7%e$7$F$$$k(B + * $B4X78>e!";XDj$5$l$?%U%)%s%H$X$N;2>H$,$"$k8B$j%U%)%s%H$O(B + * $B%/%m!<%:$5$l$J$$!#(B + * $B$^$?!"%U%)%s%H>pJs(B (XFontStruct $BFb$N>pJs$N$&$A!"(Bfid $B$r=|$/$b$N(B) + * $B$O$?$H$(%U%)%s%H$X$N;2>H$,$J$/$J$C$F$bJ];}$5$l$k!#%U%)%s%H9=B$BN(B + * $B$b$=$N$^$^J];}$5$l$k$N$G!"$$$C$?$s(B CachedFreeFont() $B$7$?%U%)%s%H$r(B + * CachedLoadFontByFontStruct() $B$G:F$S%m!<%I$9$k$3$H$b$G$-$k!#(B + */ +extern void CachedFreeFont( +#if NeedFunctionPrototypes + Display * /* dpy */, + XFontStruct * /* font */ +#endif +); + +#endif