grid.h revision 492e1cfe
1/* $Xorg: grid.h,v 1.4 2001/02/09 02:05:41 xorgcvs Exp $ */ 2/* 3 4Copyright 1993, 1998 The Open Group 5 6Permission to use, copy, modify, distribute, and sell this software and its 7documentation for any purpose is hereby granted without fee, provided that 8the above copyright notice appear in all copies and that both that 9copyright notice and this permission notice appear in supporting 10documentation. 11 12The above copyright notice and this permission notice shall be included 13in all copies or substantial portions of the Software. 14 15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 16OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 18IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 19OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 20ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 21OTHER DEALINGS IN THE SOFTWARE. 22 23Except as contained in this notice, the name of The Open Group shall 24not be used in advertising or otherwise to promote the sale, use or 25other dealings in this Software without prior written authorization 26from 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 39typedef struct _FontGridRec *FontGridWidget; 40extern 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 75typedef struct _FontGridCharRec { 76#ifdef XRENDER 77 XftFont * theface; 78#endif 79 XFontStruct * thefont; 80 long thechar; 81} FontGridCharRec; 82 83extern void GetFontGridCellDimensions( 84 Widget, 85 long *, 86 int *, 87 int * 88); 89 90extern void GetPrevNextStates( 91 Widget, 92 Bool *, 93 Bool *, 94 Bool *, 95 Bool * 96); 97 98long 99GridFirstChar (Widget w); 100 101long 102GridLastChar (Widget w); 103 104 105#endif /* _FontGrid_h_ */ 106