annotate src/winslots.h @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents cc15677e0335
children 2f8bb876ab1d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
1 /* Definitions of marked slots in windows and window configs
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
2 Copyright (C) 1985, 1986, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
3 Copyright (C) 1994, 1995 Board of Trustees, University of Illinois.
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
4 Copyright (C) 1995, 1996 Ben Wing.
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
5 Copyright (C) 1996 Chuck Thompson.
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
6
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
7 This file is part of XEmacs.
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
8
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
9 XEmacs is free software; you can redistribute it and/or modify it
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
10 under the terms of the GNU General Public License as published by the
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
11 Free Software Foundation; either version 2, or (at your option) any
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
12 later version.
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
13
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
14 XEmacs is distributed in the hope that it will be useful, but WITHOUT
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
17 for more details.
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
18
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
19 You should have received a copy of the GNU General Public License
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
20 along with XEmacs; see the file COPYING. If not, write to
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
21 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
22 Boston, MA 02111-1307, USA. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
23
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
24 /* Split out of window.h and window.c
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
25 by Kirill Katsnelson <kkm@kis.ru>, May 1998 */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
26
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
27 #ifdef WINDOW_SLOT_DECLARATION
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
28 #define WINDOW_SLOT_ARRAY(slot, size, compare) WINDOW_SLOT (slot[size], compare)
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
29 #else
286
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
30 #define WINDOW_SLOT_ARRAY(slot, size, compare) do { \
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
31 int wsaidx; \
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
32 for (wsaidx = 0; wsaidx < size; wsaidx++) \
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
33 { \
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
34 WINDOW_SLOT (slot[wsaidx], compare); \
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
35 } \
57709be46d1b Import from CVS: tag r21-0b41
cvs
parents: 284
diff changeset
36 } while (0);
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
37 #endif
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
38
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
39 #define EQUAL_WRAPPED(x,y) internal_equal ((x), (y), 0)
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
40
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
41 /*** Non-specifier vars of window and window config ***/
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
42
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
43 /* Non-nil means window is marked as dedicated. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
44 WINDOW_SLOT (dedicated, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
45
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
46 /*** specifier values cached in the struct window ***/
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
47
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
48 /* Display-table to use for displaying chars in this window. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
49 WINDOW_SLOT (display_table, EQUAL_WRAPPED);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
50 /* Thickness of modeline shadow, in pixels. If negative, draw
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
51 as recessed. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
52 WINDOW_SLOT (modeline_shadow_thickness, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
53 /* Non-nil means to display a modeline for the buffer. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
54 WINDOW_SLOT (has_modeline_p, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
55 /* Thickness of vertical divider shadow, in pixels. If negative, draw as
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
56 recessed. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
57 WINDOW_SLOT (vertical_divider_shadow_thickness, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
58 /* Divider surface width (not counting 3-d borders) */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
59 WINDOW_SLOT (vertical_divider_line_width, EQ);
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 367
diff changeset
60 /* Spacing between outer egde of divider border and window edge */
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
61 WINDOW_SLOT (vertical_divider_spacing, EQ);
298
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 286
diff changeset
62 /* Whether vertical dividers are always displayed */
70ad99077275 Import from CVS: tag r21-0b47
cvs
parents: 286
diff changeset
63 WINDOW_SLOT (vertical_divider_always_visible_p, EQ);
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
64
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
65 #ifdef HAVE_SCROLLBARS
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
66 /* Width of vertical scrollbars. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
67 WINDOW_SLOT (scrollbar_width, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
68 /* Height of horizontal scrollbars. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
69 WINDOW_SLOT (scrollbar_height, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
70 /* Whether the scrollbars are visible */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
71 WINDOW_SLOT (horizontal_scrollbar_visible_p, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
72 WINDOW_SLOT (vertical_scrollbar_visible_p, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
73 /* Scrollbar positions */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
74 WINDOW_SLOT (scrollbar_on_left_p, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
75 WINDOW_SLOT (scrollbar_on_top_p, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
76 /* Pointer to use for vertical and horizontal scrollbars. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
77 WINDOW_SLOT (scrollbar_pointer, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
78 #endif /* HAVE_SCROLLBARS */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
79 #ifdef HAVE_TOOLBARS
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
80 /* Toolbar specification for each of the four positions.
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
81 This is not a size hog because the value here is not copied,
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
82 and will be shared with the specs in the specifier. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
83 WINDOW_SLOT_ARRAY (toolbar, 4, EQUAL_WRAPPED);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
84 /* Toolbar size for each of the four positions. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
85 WINDOW_SLOT_ARRAY (toolbar_size, 4, EQUAL_WRAPPED);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
86 /* Toolbar border width for each of the four positions. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
87 WINDOW_SLOT_ARRAY (toolbar_border_width, 4, EQUAL_WRAPPED);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
88 /* Toolbar visibility status for each of the four positions. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
89 WINDOW_SLOT_ARRAY (toolbar_visible_p, 4, EQUAL_WRAPPED);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
90 /* Caption status of toolbar. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
91 WINDOW_SLOT (toolbar_buttons_captioned_p, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
92 /* The following five don't really need to be cached except
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
93 that we need to know when they've changed. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
94 WINDOW_SLOT (default_toolbar, EQUAL_WRAPPED);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
95 WINDOW_SLOT (default_toolbar_width, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
96 WINDOW_SLOT (default_toolbar_height, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
97 WINDOW_SLOT (default_toolbar_visible_p, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
98 WINDOW_SLOT (default_toolbar_border_width, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
99 #endif /* HAVE_TOOLBARS */
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
100
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
101 /* Gutter specification for each of the four positions.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
102 This is not a size hog because the value here is not copied,
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
103 and will be shared with the specs in the specifier. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
104 WINDOW_SLOT_ARRAY (gutter, 4, EQUAL_WRAPPED);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
105 /* Gutter size for each of the four positions. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
106 WINDOW_SLOT_ARRAY (gutter_size, 4, EQUAL_WRAPPED);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
107 /* Real (pre-calculated) gutter size for each of the four positions.
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
108 This is not a specifier, it is calculated by the specifier change
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
109 functions. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
110 WINDOW_SLOT_ARRAY (real_gutter_size, 4, EQUAL_WRAPPED);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
111 /* Gutter border width for each of the four positions. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
112 WINDOW_SLOT_ARRAY (gutter_border_width, 4, EQUAL_WRAPPED);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
113 /* Gutter visibility status for each of the four positions. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
114 WINDOW_SLOT_ARRAY (gutter_visible_p, 4, EQUAL_WRAPPED);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
115 /* The following five don't really need to be cached except
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
116 that we need to know when they've changed. */
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
117 WINDOW_SLOT (default_gutter, EQUAL_WRAPPED);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
118 WINDOW_SLOT (default_gutter_width, EQ);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
119 WINDOW_SLOT (default_gutter_height, EQ);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
120 WINDOW_SLOT (default_gutter_visible_p, EQ);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
121 WINDOW_SLOT (default_gutter_border_width, EQ);
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents: 371
diff changeset
122 /* margins */
284
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
123 WINDOW_SLOT (left_margin_width, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
124 WINDOW_SLOT (right_margin_width, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
125 WINDOW_SLOT (minimum_line_ascent, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
126 WINDOW_SLOT (minimum_line_descent, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
127 WINDOW_SLOT (use_left_overflow, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
128 WINDOW_SLOT (use_right_overflow, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
129 #ifdef HAVE_MENUBARS
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
130 /* Visibility of menubar. */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
131 WINDOW_SLOT (menubar_visible_p, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
132 #endif /* HAVE_MENUBARS */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
133 WINDOW_SLOT (text_cursor_visible_p, EQ);
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
134
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
135 /* Hara-kiri */
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
136 #undef EQUAL_WRAPPED
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
137 #undef WINDOW_SLOT_DECLARATION
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
138 #undef WINDOW_SLOT
558f606b08ae Import from CVS: tag r21-0b40
cvs
parents:
diff changeset
139 #undef WINDOW_SLOT_ARRAY