annotate src/gnu.h @ 1783:8e7932110418

* window.c (window_internal_width): New function, which accounts for scrollbars if present. * lisp.h (window_internal_height, window_internal_width): Add extern declarations for these. * dispnew.c (direct_output_for_insert, direct_output_forward_char, buffer_posn_from_coords): Use window_internal_width instead of writing out its definition. * indent.c (compute_motion): Doc fix; mention scrollbars and window_internal_width. (pos_tab_offset, Fvertical_motion): Use window_internal_width instead of writing it out. * window.c (Fpos_visible_in_window_p, Fwindow_width, Fscroll_left, Fscroll_right): Same. * xdisp.c (redisplay, try_window, try_window_id, display_text_line): Same. * termhooks.h (mouse_position_hook): Doc fix. (set_vertical_scrollbar_hook): This doesn't return anything any more, and doesn't take a struct scrollbar * argument any more. (condemn_scrollbars_hook, redeem_scrollbar_hook, judge_scrollbars_hook): Doc fixes. * term.c (mouse_position_hook): Doc fix. (set_vertical_scrollbar_hook): This doesn't return anything any more. Doc fixes. * keyboard.c (kbd_buffer_get_event): Receive the scrollbar's window from *mouse_position_hook and pass it to make_lispy_movement, instead of working with a pointer to a struct scrollbar. (make_lispy_event): We don't need a window_from_scrollbar function anymore; we are given the window directly in *EVENT. Unify the code which generates text-area mouse clicks and scrollbar clicks; use the same code to distinguish clicks from drags on the scrollbar as in the text area. Distinguish clicks from drags by storing a copy of the lispy position list returned as part of the event. (button_down_location): Make this a lisp vector, rather than an array of random structures. (struct mouse_position): Remove this; it's been replaced by a lisp list. (make_lispy_movement): Accept the scrollbar's window as a parameter, rather than the scrollbar itself. If FRAME is zero, assume that the other arguments are garbage. (syms_of_keyboard): No need to staticpro each window of button_down_location now; just initialize and staticpro it. * window.c (window_from_scrollbar): Function deleted; no longer needed. * xdisp.c (redisplay_window): Just pass the window to set_vertical_scrollbar hook; don't pass the scrollbar object too. * xterm.c (XTmouse_position): Don't return a pointer to the scrollbar for scrollbar motion; instead, return the scrollbar's window.
author Jim Blandy <jimb@redhat.com>
date Thu, 14 Jan 1993 15:17:11 +0000
parents 0ffcf74fb8ad
children 6ad8db6dc039
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
486
80cdb2387043 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1 #define gnu_width 50
80cdb2387043 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2 #define gnu_height 50
80cdb2387043 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3 static char gnu_bits[] = {
1113
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
4 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
5 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
6 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe0, 0x01, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
7 0x00, 0x00, 0x00, 0x80, 0x03, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x0e,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
8 0x00, 0x00, 0x0c, 0x00, 0x70, 0x00, 0x1e, 0x00, 0x00, 0x06, 0xc0, 0xdd,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
9 0x01, 0x34, 0x00, 0x00, 0x07, 0x3c, 0x07, 0x03, 0x34, 0x00, 0x80, 0x03,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
10 0x1f, 0x06, 0x06, 0x24, 0x00, 0x80, 0x03, 0x0f, 0x04, 0x0c, 0x26, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
11 0xc0, 0x81, 0x07, 0x00, 0x08, 0x33, 0x00, 0x60, 0xc1, 0xe3, 0x80, 0xbb,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
12 0x31, 0x00, 0x30, 0xe1, 0x33, 0xfe, 0xff, 0x18, 0x00, 0x10, 0xf1, 0x31,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
13 0xc7, 0xe3, 0x1f, 0x00, 0x10, 0xf1, 0xd8, 0x01, 0x05, 0x3c, 0x00, 0x10,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
14 0x83, 0x6c, 0x00, 0x1a, 0x40, 0x00, 0x10, 0x66, 0x36, 0x54, 0xd5, 0xff,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
15 0x00, 0x30, 0x3c, 0xdb, 0xab, 0x3a, 0x2a, 0x00, 0x60, 0x80, 0xe9, 0x54,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
16 0x35, 0x00, 0x00, 0xe0, 0xe0, 0x6c, 0xb9, 0x6a, 0x00, 0x00, 0x80, 0x37,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
17 0xb6, 0x66, 0x75, 0x00, 0x00, 0x00, 0x0f, 0xb6, 0xb4, 0x6a, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
18 0x00, 0x06, 0xb3, 0x77, 0x75, 0x00, 0x00, 0x00, 0xe1, 0x19, 0xa7, 0x6a,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
19 0x00, 0x00, 0xc0, 0xff, 0x19, 0x48, 0xf5, 0x00, 0x00, 0x40, 0x75, 0x15,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
20 0xaf, 0xea, 0x00, 0x00, 0x00, 0x70, 0x35, 0x66, 0xd5, 0x00, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
21 0x58, 0x6a, 0x80, 0xea, 0x00, 0x00, 0x00, 0xdc, 0xaa, 0x80, 0xd5, 0x01,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
22 0x00, 0x00, 0x9c, 0x27, 0x03, 0xeb, 0x01, 0x00, 0x00, 0xbc, 0x65, 0x04,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
23 0xd4, 0x01, 0x00, 0x00, 0x3c, 0x55, 0xed, 0x6b, 0x03, 0x00, 0x00, 0x3e,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
24 0xcd, 0x2a, 0x3e, 0x02, 0x00, 0x00, 0x7e, 0xb9, 0x2a, 0xb8, 0x03, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
25 0x00, 0x7c, 0x93, 0x3d, 0x91, 0x03, 0x00, 0x00, 0x7c, 0x76, 0x77, 0x96,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
26 0x01, 0x00, 0x00, 0xf8, 0x6d, 0xf6, 0xc4, 0x01, 0x00, 0x00, 0xf8, 0xdd,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
27 0xfe, 0xc3, 0x01, 0x00, 0x00, 0xf0, 0xb1, 0xfd, 0xfc, 0x01, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
28 0xd0, 0x2f, 0xe7, 0xc1, 0x00, 0x00, 0x00, 0xc0, 0x4f, 0xe6, 0x61, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
29 0x00, 0x00, 0x80, 0xff, 0xf6, 0x7f, 0x00, 0x00, 0x00, 0x80, 0xfe, 0x1c,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
30 0x3e, 0x00, 0x00, 0x00, 0x00, 0xfa, 0x1f, 0x00, 0x00, 0x00, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
31 0xf8, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa0, 0x02, 0x00, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
32 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0ffcf74fb8ad entered into RCS
Jim Blandy <jimb@redhat.com>
parents: 486
diff changeset
33 0x00, 0x00};