comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:92745d501b9a
1 /* $Id: CachedFont.h,v 1.3 1999/01/07 03:06:20 ishisone Exp $ */
2 /*
3 * Copyright (c) 1991 Software Research Associates, Inc.
4 *
5 * Permission to use, copy, modify, and distribute this software and its
6 * documentation for any purpose and without fee is hereby granted, provided
7 * that the above copyright notice appear in all copies and that both that
8 * copyright notice and this permission notice appear in supporting
9 * documentation, and that the name of Software Research Associates not be
10 * used in advertising or publicity pertaining to distribution of the
11 * software without specific, written prior permission. Software Research
12 * Associates makes no representations about the suitability of this software
13 * for any purpose. It is provided "as is" without express or implied
14 * warranty.
15 *
16 * Author: Makoto Ishisone, Software Research Associates, Inc., Japan
17 */
18
19 #ifndef _CachedFont_h
20 #define _CachedFont_h
21
22 /*
23 * XFontStruct *CachedLoadQueryFontByName(Display *dpy, String name)
24 * XLoadQueryFont() $B$H$[$\F1$8$@$,!";XDj$5$l$?%U%)%s%H$,(B
25 * $B$9$G$K%*!<%W%s$5$l$F$$$l$P$=$l$rJV$9!#(B
26 */
27 extern XFontStruct *CachedLoadQueryFontByName(
28 #if NeedFunctionPrototypes
29 Display * /* dpy */,
30 String /* name */
31 #endif
32 );
33
34 /*
35 * XFontStruct *CachedLoadQueryFontByProp(Display *dpy, Atom atom)
36 * CachedLoadQueryFontByName() $B$H$[$\F1$8$@$,!"%U%)%s%HL>$G$O$J$/!"(B
37 * $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)
38 * $B$G;XDj$9$k!#(B
39 * $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
40 * $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
41 * $B$+$i$G$"$k!#(B
42 */
43 extern XFontStruct *CachedLoadQueryFontByProp(
44 #if NeedFunctionPrototypes
45 Display * /* dpy */,
46 Atom /* atom */
47 #endif
48 );
49
50 /*
51 * XFontStruct *CachedLoadFontByFontStruct(Display *dpy, XFontStruct *font)
52 * CachedFreeFont() $B$G0lEY;HMQ$7$J$/$J$C$?%U%)%s%H$r:F$S%m!<%I$9$k$N$K(B
53 * $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
54 * $BA}$d$9$@$1$G$"$k!#(B
55 * $B$b$7;XDj$5$l$?(B font $B$,(B CachedLoadQueryFontByName() $B$^$?$O(B
56 * CachedLoadQueryFontByProp() $B$r;HMQ$7$F:n$i$l$?$b$N$G$O$J$$;~$K$O(B
57 * NULL $B$,JV$k!#$=$&$G$J$$;~$K$O(B font $B$NCM$,$=$N$^$^JV$5$l$k!#(B
58 */
59 extern XFontStruct *CachedLoadFontByFontStruct(
60 #if NeedFunctionPrototypes
61 Display * /* dpy */,
62 XFontStruct * /* font */
63 #endif
64 );
65
66 /*
67 * void CachedFreeFont(Display *dpy, XFontStruct *font)
68 * CachedLoadQueryFontByName() $B$^$?$O(B CachedLoadQueryFontByProp() $B$G(B
69 * $BF@$i$l$?%U%)%s%H$r;HMQ$7$J$/$J$C$?;~$K8F$V!#(B
70 * XFreeFont() $B$H$[$\F1$8$@$,!"%U%)%s%H>pJs$r%-%c%C%7%e$7$F$$$k(B
71 * $B4X78>e!";XDj$5$l$?%U%)%s%H$X$N;2>H$,$"$k8B$j%U%)%s%H$O(B
72 * $B%/%m!<%:$5$l$J$$!#(B
73 * $B$^$?!"%U%)%s%H>pJs(B (XFontStruct $BFb$N>pJs$N$&$A!"(Bfid $B$r=|$/$b$N(B)
74 * $B$O$?$H$(%U%)%s%H$X$N;2>H$,$J$/$J$C$F$bJ];}$5$l$k!#%U%)%s%H9=B$BN(B
75 * $B$b$=$N$^$^J];}$5$l$k$N$G!"$$$C$?$s(B CachedFreeFont() $B$7$?%U%)%s%H$r(B
76 * CachedLoadFontByFontStruct() $B$G:F$S%m!<%I$9$k$3$H$b$G$-$k!#(B
77 */
78 extern void CachedFreeFont(
79 #if NeedFunctionPrototypes
80 Display * /* dpy */,
81 XFontStruct * /* font */
82 #endif
83 );
84
85 #endif