File:  [CSRG BSD Unix] / 43BSDTahoe / new / X / Xlib / Xtext.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:58 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43tahoe
BSD 4.3tahoe

/* $Header: /var/lib/cvsd/repos/CSRG/43BSDTahoe/new/X/Xlib/Xtext.h,v 1.1.1.1 2018/04/24 16:12:58 root Exp $ */
/* Include file for X text window package.  An application using this
   package modifies any of the fields at its own risk! */

#include <X/Xlib.h>

typedef struct _TextWindow {
	struct _TextWindow *next; /* for linked list of TextWindows */
	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();

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.