3 /* display.h -- How the display in Info is done.
4 Id: display.h,v 1.3 2004/04/11 17:56:45 karl Exp
6 This file is part of GNU Info, a program for reading online documentation
9 Copyright (C) 1993, 1997, 2004 Free Software Foundation, Inc.
11 This program is free software; you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2, or (at your option)
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with this program; if not, write to the Free Software
23 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25 Written by Brian Fox (bfox@ai.mit.edu). */
27 #ifndef INFO_DISPLAY_H
28 #define INFO_DISPLAY_H
30 #include "info-utils.h"
34 char *text
; /* Text of the line as it appears. */
35 int textlen
; /* Printable Length of TEXT. */
36 int inverse
; /* Non-zero means this line is inverse. */
39 /* An array of display lines which tell us what is currently visible on
41 extern DISPLAY_LINE
**the_display
;
43 /* Non-zero means do no output. */
44 extern int display_inhibited
;
46 /* Non-zero if we didn't completely redisplay a window. */
47 extern int display_was_interrupted_p
;
49 /* Initialize THE_DISPLAY to WIDTH and HEIGHT, with nothing in it. */
50 extern void display_initialize_display (int width
, int height
);
52 /* Clear all of the lines in DISPLAY making the screen blank. */
53 extern void display_clear_display (DISPLAY_LINE
**display
);
55 /* Update the windows pointed to by WINDOWS in THE_DISPLAY. This actually
56 writes the text on the screen. */
57 extern void display_update_display (WINDOW
*window
);
59 /* Display WIN on THE_DISPLAY. Unlike display_update_display (), this
60 function only does one window. */
61 extern void display_update_one_window (WINDOW
*win
);
63 /* Move the screen cursor to directly over the current character in WINDOW. */
64 extern void display_cursor_at_point (WINDOW
*window
);
66 /* Scroll the region of the_display starting at START, ending at END, and
67 moving the lines AMOUNT lines. If AMOUNT is less than zero, the lines
68 are moved up in the screen, otherwise down. Actually, it is possible
69 for no scrolling to take place in the case that the terminal doesn't
70 support it. This doesn't matter to us. */
71 extern void display_scroll_display (int start
, int end
, int amount
);
73 /* Try to scroll lines in WINDOW. OLD_PAGETOP is the pagetop of WINDOW before
74 having had its line starts recalculated. OLD_STARTS is the list of line
75 starts that used to appear in this window. OLD_COUNT is the number of lines
76 that appear in the OLD_STARTS array. */
77 extern void display_scroll_line_starts (WINDOW
*window
, int old_pagetop
,
78 char **old_starts
, int old_count
);
80 #endif /* not INFO_DISPLAY_H */