* $XConsortium: DviP.h,v 1.5 89/07/22 19:44:08 keith Exp $
* DviP.h - Private definitions for Dvi widget
/***********************************************************************
* Dvi Widget Private Data
***********************************************************************/
/************************************
***********************************/
* New fields for the Dvi widget class record
typedef struct _DviClass
{
int makes_compiler_happy
; /* not used */
* Full class record declaration
typedef struct _DviClassRec
{
CoreClassPart core_class
;
DviClassPart command_class
;
extern DviClassRec dviClassRec
;
/***************************************
* Instance (widget) structure
**************************************/
* a list of fonts we've used for this widget
typedef struct _dviFontSizeList
{
struct _dviFontSizeList
*next
;
typedef struct _dviFontList
{
struct _dviFontList
*next
;
DviCharNameMap
*char_map
;
typedef struct _dviFontMap
{
struct _dviFontMap
*next
;
#define DVI_TEXT_CACHE_SIZE 256
#define DVI_CHAR_CACHE_SIZE 1024
typedef struct _dviCharCache
{
XTextItem cache
[DVI_TEXT_CACHE_SIZE
];
char char_cache
[DVI_CHAR_CACHE_SIZE
];
typedef struct _dviState
{
typedef struct _dviFileMap
{
struct _dviFileMap
*next
;
* New fields for the Dvi widget record
* resource specifiable items
unsigned long foreground
;
unsigned long background
;
XFontStruct
*default_font
;
Boolean seek
; /* file is "seekable" */
FILE *tmpFile
; /* used when reading stdin */
char readingTmp
; /* reading now from tmp */
char ungot
; /* have ungetc'd a char */
#define DVI_FILL_MAX 1000
(*cp = getc (dw->dvi.file))\
((*cp = getc (dw->dvi.tmpFile)) == EOF) ? (\
fseek (dw->dvi.tmpFile, 0l, 2),\
(dw->dvi.readingTmp = 0),\
#define DviUngetC(dw, c)\
ungetc (c, dw->dvi.tmpFile)\
ungetc (c, dw->dvi.file)))
* Full widget declaration
extern XFontStruct
*QueryFont ();
extern DviCharNameMap
*QueryFontMap ();