4.3BSD/usr/contrib/X/Xlib/Xtext.h

Compare this file to the similar file:
Show the results in this format:

/* $Header: Xtext.h,v 10.3 86/02/01 15:42:28 tony Rel $ */
/* Include file for X text window package.  An application using this
   package modifies any of the fields at its own risk! */

typedef struct _TextWindow {
	Window w;		/* Window to use */
	FontInfo *font;		/* Font to use for text */
	int fgpixel;		/* Pixel value of foreground */
	int bgpixel;		/* Pixel value of background */
	short num_lines;	/* Number of lines in the window */
	short num_chars;	/* The length of each line */
	short mapped;		/* Whether or not the window is mapped */
	short height;		/* Height of window in pixels */
	short width;		/* Width of window in pixels */
	short first_line;	/* The index of the first line */
	char **lines;		/* Ptr to array of text lines */
	short *line_length;	/* Ptr to array of line lengths (in pixels) */
	short *line_chars;	/* Ptr to array of line lengths in chars */
	short last_line;	/* Which line is the last */
	short last_char;	/* Length of the last line */
	short next_x;		/* X-coord for next character */
	short next_y;		/* Y-coord for next character */
	unsigned int eventmask;	/* List of events we're interested in */
	char *scroll_history;	/* Ptr to list of scroll amounts */
	short scroll_count;	/* Number of outstanding scrolls */
	short scroll_start;	/* Where in the history the history starts */
	short old_scrolls;	/* Number of ignorable outstanting scrolls */
	short fastscroll;	/* Whether or not to use fast scrolling */
} TextWindow; 

TextWindow *TextCreate();