comparison src/xterm.h @ 2196:75e1f1ee83ad

(SELECTION_EVENT_DISPLAY): New macro. (SELECTION_EVENT_REQUESTOR, SELECTION_EVENT_SELECTION) (SELECTION_EVENT_TARGET, SELECTION_EVENT_PROPERTY) (SELECTION_EVENT_TIME): New macros. (struct selection_input_event): New structure.
author Richard M. Stallman <rms@gnu.org>
date Mon, 15 Mar 1993 06:05:17 +0000
parents 73ce9dd21093
children 10b84f28f6f2
comparison
equal deleted inserted replaced
2195:b20bb441f47f 2196:75e1f1ee83ad
543 - (f)->display.x->internal_border_width \ 543 - (f)->display.x->internal_border_width \
544 - (f)->display.x->vertical_scroll_bar_extra))) 544 - (f)->display.x->vertical_scroll_bar_extra)))
545 #define PIXEL_TO_CHAR_HEIGHT(f, height) \ 545 #define PIXEL_TO_CHAR_HEIGHT(f, height) \
546 (PIXEL_TO_CHAR_ROW (f, ((height) \ 546 (PIXEL_TO_CHAR_ROW (f, ((height) \
547 - (f)->display.x->internal_border_width))) 547 - (f)->display.x->internal_border_width)))
548
549 /* If a struct input_event has a kind which is selection_request_event
550 or selection_clear_event, then its contents are really described
551 by this structure. */
552
553 /* For an event of kind selection_request_event,
554 this structure really describes the contents. */
555 struct selection_input_event
556 {
557 int kind;
558 Display *display;
559 Window requestor;
560 Atom selection, target, property;
561 Time time;
562 };
563
564 #define SELECTION_EVENT_DISPLAY(eventp) \
565 (((struct selection_input_event *) (eventp))->display)
566 #define SELECTION_EVENT_REQUESTOR(eventp) \
567 (((struct selection_input_event *) (eventp))->requestor)
568 #define SELECTION_EVENT_SELECTION(eventp) \
569 (((struct selection_input_event *) (eventp))->selection)
570 #define SELECTION_EVENT_TARGET(eventp) \
571 (((struct selection_input_event *) (eventp))->target)
572 #define SELECTION_EVENT_PROPERTY(eventp) \
573 (((struct selection_input_event *) (eventp))->property)
574 #define SELECTION_EVENT_TIME(eventp) \
575 (((struct selection_input_event *) (eventp))->time)