"Initial commit to Gerrit"
[profile/ivi/xorg-utils.git] / xfd / grid.h
1 /* $Xorg: grid.h,v 1.4 2001/02/09 02:05:41 xorgcvs Exp $ */
2 /*
3
4 Copyright 1993, 1998  The Open Group
5
6 Permission to use, copy, modify, distribute, and sell this software and its
7 documentation for any purpose is hereby granted without fee, provided that
8 the above copyright notice appear in all copies and that both that
9 copyright notice and this permission notice appear in supporting
10 documentation.
11
12 The above copyright notice and this permission notice shall be included
13 in all copies or substantial portions of the Software.
14
15 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
16 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
19 OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
20 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
21 OTHER DEALINGS IN THE SOFTWARE.
22
23 Except as contained in this notice, the name of The Open Group shall
24 not be used in advertising or otherwise to promote the sale, use or
25 other dealings in this Software without prior written authorization
26 from The Open Group.
27
28 */
29 /* $XFree86: xc/programs/xfd/grid.h,v 1.4 2002/07/23 01:45:41 tsi Exp $ */
30
31 #ifndef _FontGrid_h_
32 #define _FontGrid_h_
33
34 #ifdef XRENDER
35 #include <X11/Xft/Xft.h>
36 #include <X11/extensions/Xrender.h>
37 #endif
38
39 typedef struct _FontGridRec *FontGridWidget;
40 extern WidgetClass fontgridWidgetClass;
41
42 #define XtNcellRows "cellRows"
43 #define XtCCellRows "CellRows"
44 #define XtNcellColumns "cellColumns"
45 #define XtCCellColumns "CellColumns"
46 #define XtNcellWidth "cellWidth"
47 #define XtCCellWidth "CellWidth"
48 #define XtNcellHeight "cellHeight"
49 #define XtCCellHeight "CellHeight"
50
51 #define XtNcenterChars "centerChars"
52 #define XtCCenterChars "CenterChars"
53
54 #define XtNboxChars "boxChars"
55 #define XtCBoxChars "BoxChars"
56
57 #define XtNboxColor "boxColor"
58 #define XtCBoxColor "BoxColor"
59
60 #define XtNstartChar "startChar"
61 #define XtCStartChar "StartChar"
62
63 #define XtNinternalPad "internalPad"
64 #define XtCInternalPad "InternalPad"
65
66 #define XtNgridWidth "gridWidth"
67 #define XtCGridWidth "GridWidth"
68
69 #define XtRXftColor "XftColor"
70
71 #define XtNface "face"
72 #define XtCFace "Face"
73 #define XtRXftFont "XftFont"
74
75 typedef struct _FontGridCharRec {
76 #ifdef XRENDER
77     XftFont *           theface;
78 #endif
79     XFontStruct *       thefont;
80     long                thechar;
81 } FontGridCharRec;
82
83 extern void GetFontGridCellDimensions(
84    Widget,
85    long *,
86    int *,
87    int *
88 );
89
90 extern void GetPrevNextStates(
91     Widget,
92     Bool *,
93     Bool *,
94     Bool *,
95     Bool *
96 );
97
98 long
99 GridFirstChar (Widget w);
100
101 long
102 GridLastChar (Widget w);
103
104     
105 #endif /* _FontGrid_h_ */