diff options
Diffstat (limited to 'src/termhooks.h')
| -rw-r--r-- | src/termhooks.h | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/src/termhooks.h b/src/termhooks.h index f9bf9d785b6..04104eb41e9 100644 --- a/src/termhooks.h +++ b/src/termhooks.h | |||
| @@ -37,7 +37,14 @@ enum scroll_bar_part { | |||
| 37 | scroll_bar_to_top, | 37 | scroll_bar_to_top, |
| 38 | scroll_bar_to_bottom, | 38 | scroll_bar_to_bottom, |
| 39 | scroll_bar_end_scroll, | 39 | scroll_bar_end_scroll, |
| 40 | scroll_bar_move_ratio | 40 | scroll_bar_move_ratio, |
| 41 | scroll_bar_before_handle, | ||
| 42 | scroll_bar_horizontal_handle, | ||
| 43 | scroll_bar_after_handle, | ||
| 44 | scroll_bar_left_arrow, | ||
| 45 | scroll_bar_right_arrow, | ||
| 46 | scroll_bar_to_leftmost, | ||
| 47 | scroll_bar_to_rightmost | ||
| 41 | }; | 48 | }; |
| 42 | 49 | ||
| 43 | /* Output method of a terminal (and frames on this terminal, respectively). */ | 50 | /* Output method of a terminal (and frames on this terminal, respectively). */ |
| @@ -130,6 +137,19 @@ enum event_kind | |||
| 130 | whose scroll bar was clicked in. | 137 | whose scroll bar was clicked in. |
| 131 | .timestamp gives a timestamp (in | 138 | .timestamp gives a timestamp (in |
| 132 | milliseconds) for the click. */ | 139 | milliseconds) for the click. */ |
| 140 | HORIZONTAL_SCROLL_BAR_CLICK_EVENT, /* .code gives the number of the mouse button | ||
| 141 | that was clicked. | ||
| 142 | .modifiers holds the state of the modifier | ||
| 143 | keys. | ||
| 144 | .part is a lisp symbol indicating which | ||
| 145 | part of the scroll bar got clicked. | ||
| 146 | .x gives the distance from the start of the | ||
| 147 | scroll bar of the click; .y gives the total | ||
| 148 | length of the scroll bar. | ||
| 149 | .frame_or_window gives the window | ||
| 150 | whose scroll bar was clicked in. | ||
| 151 | .timestamp gives a timestamp (in | ||
| 152 | milliseconds) for the click. */ | ||
| 133 | SELECTION_REQUEST_EVENT, /* Another X client wants a selection from us. | 153 | SELECTION_REQUEST_EVENT, /* Another X client wants a selection from us. |
| 134 | See `struct selection_input_event'. */ | 154 | See `struct selection_input_event'. */ |
| 135 | SELECTION_CLEAR_EVENT, /* Another X client cleared our selection. */ | 155 | SELECTION_CLEAR_EVENT, /* Another X client cleared our selection. */ |
| @@ -518,6 +538,16 @@ struct terminal | |||
| 518 | int position); | 538 | int position); |
| 519 | 539 | ||
| 520 | 540 | ||
| 541 | /* Set the horizontal scroll bar for WINDOW to have its upper left | ||
| 542 | corner at (TOP, LEFT), and be LENGTH rows high. Set its handle to | ||
| 543 | indicate that we are displaying PORTION characters out of a total | ||
| 544 | of WHOLE characters, starting at POSITION. If WINDOW doesn't yet | ||
| 545 | have a scroll bar, create one for it. */ | ||
| 546 | void (*set_horizontal_scroll_bar_hook) (struct window *window, | ||
| 547 | int portion, int whole, | ||
| 548 | int position); | ||
| 549 | |||
| 550 | |||
| 521 | /* The following three hooks are used when we're doing a thorough | 551 | /* The following three hooks are used when we're doing a thorough |
| 522 | redisplay of the frame. We don't explicitly know which scroll bars | 552 | redisplay of the frame. We don't explicitly know which scroll bars |
| 523 | are going to be deleted, because keeping track of when windows go | 553 | are going to be deleted, because keeping track of when windows go |