|
|
1.1 root 1: /* $Header: Xtext.h,v 10.4 86/04/23 12:04:49 jg Rel $ */
2: /* Include file for X text window package. An application using this
3: package modifies any of the fields at its own risk! */
4:
5: #include <X/Xlib.h>
6:
7: typedef struct _TextWindow {
8: struct _TextWindow *next; /* for linked list of TextWindows */
9: Window w; /* Window to use */
10: FontInfo *font; /* Font to use for text */
11: int fgpixel; /* Pixel value of foreground */
12: int bgpixel; /* Pixel value of background */
13: short num_lines; /* Number of lines in the window */
14: short num_chars; /* The length of each line */
15: short mapped; /* Whether or not the window is mapped */
16: short height; /* Height of window in pixels */
17: short width; /* Width of window in pixels */
18: short first_line; /* The index of the first line */
19: char **lines; /* Ptr to array of text lines */
20: short *line_length; /* Ptr to array of line lengths (in pixels) */
21: short *line_chars; /* Ptr to array of line lengths in chars */
22: short last_line; /* Which line is the last */
23: short last_char; /* Length of the last line */
24: short next_x; /* X-coord for next character */
25: short next_y; /* Y-coord for next character */
26: unsigned int eventmask; /* List of events we're interested in */
27: char *scroll_history; /* Ptr to list of scroll amounts */
28: short scroll_count; /* Number of outstanding scrolls */
29: short scroll_start; /* Where in the history the history starts */
30: short old_scrolls; /* Number of ignorable outstanting scrolls */
31: short fastscroll; /* Whether or not to use fast scrolling */
32: } TextWindow;
33:
34: TextWindow *TextCreate();
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.