Mercurial > hg > xemacs-beta
comparison src/console-x.h @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children | 11054d720c21 |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
27 Ultimately based on FSF, then later on JWZ work for Lemacs. | 27 Ultimately based on FSF, then later on JWZ work for Lemacs. |
28 Rewritten over time by Ben Wing and Chuck Thompson (original | 28 Rewritten over time by Ben Wing and Chuck Thompson (original |
29 multi-device work by Chuck Thompson). | 29 multi-device work by Chuck Thompson). |
30 */ | 30 */ |
31 | 31 |
32 #ifndef INCLUDED_console_x_h_ | 32 #ifndef _XEMACS_CONSOLE_X_H_ |
33 #define INCLUDED_console_x_h_ | 33 #define _XEMACS_CONSOLE_X_H_ |
34 | 34 |
35 #ifdef HAVE_X_WINDOWS | 35 #ifdef HAVE_X_WINDOWS |
36 | 36 |
37 #include "console.h" | 37 #include "console.h" |
38 #include "xintrinsic.h" | 38 #include "xintrinsic.h" |
93 Atom Xatom_WM_DELETE_WINDOW; | 93 Atom Xatom_WM_DELETE_WINDOW; |
94 Atom Xatom_WM_SAVE_YOURSELF; | 94 Atom Xatom_WM_SAVE_YOURSELF; |
95 Atom Xatom_WM_TAKE_FOCUS; | 95 Atom Xatom_WM_TAKE_FOCUS; |
96 Atom Xatom_WM_STATE; | 96 Atom Xatom_WM_STATE; |
97 | 97 |
98 /* allocated in Xatoms_of_select_x in xselect.c */ | 98 /* allocated in Xatoms_of_xselect in xselect.c */ |
99 Atom Xatom_CLIPBOARD; | 99 Atom Xatom_CLIPBOARD; |
100 Atom Xatom_TIMESTAMP; | 100 Atom Xatom_TIMESTAMP; |
101 Atom Xatom_TEXT; | 101 Atom Xatom_TEXT; |
102 Atom Xatom_DELETE; | 102 Atom Xatom_DELETE; |
103 Atom Xatom_MULTIPLE; | 103 Atom Xatom_MULTIPLE; |
211 #define DEVICE_XATOM_WM_DELETE_WINDOW(d) (DEVICE_X_DATA (d)->Xatom_WM_DELETE_WINDOW) | 211 #define DEVICE_XATOM_WM_DELETE_WINDOW(d) (DEVICE_X_DATA (d)->Xatom_WM_DELETE_WINDOW) |
212 #define DEVICE_XATOM_WM_SAVE_YOURSELF(d) (DEVICE_X_DATA (d)->Xatom_WM_SAVE_YOURSELF) | 212 #define DEVICE_XATOM_WM_SAVE_YOURSELF(d) (DEVICE_X_DATA (d)->Xatom_WM_SAVE_YOURSELF) |
213 #define DEVICE_XATOM_WM_TAKE_FOCUS(d) (DEVICE_X_DATA (d)->Xatom_WM_TAKE_FOCUS) | 213 #define DEVICE_XATOM_WM_TAKE_FOCUS(d) (DEVICE_X_DATA (d)->Xatom_WM_TAKE_FOCUS) |
214 #define DEVICE_XATOM_WM_STATE(d) (DEVICE_X_DATA (d)->Xatom_WM_STATE) | 214 #define DEVICE_XATOM_WM_STATE(d) (DEVICE_X_DATA (d)->Xatom_WM_STATE) |
215 | 215 |
216 /* allocated in Xatoms_of_select_x in xselect.c */ | 216 /* allocated in Xatoms_of_xselect in xselect.c */ |
217 #define DEVICE_XATOM_CLIPBOARD(d) (DEVICE_X_DATA (d)->Xatom_CLIPBOARD) | 217 #define DEVICE_XATOM_CLIPBOARD(d) (DEVICE_X_DATA (d)->Xatom_CLIPBOARD) |
218 #define DEVICE_XATOM_TIMESTAMP(d) (DEVICE_X_DATA (d)->Xatom_TIMESTAMP) | 218 #define DEVICE_XATOM_TIMESTAMP(d) (DEVICE_X_DATA (d)->Xatom_TIMESTAMP) |
219 #define DEVICE_XATOM_TEXT(d) (DEVICE_X_DATA (d)->Xatom_TEXT) | 219 #define DEVICE_XATOM_TEXT(d) (DEVICE_X_DATA (d)->Xatom_TEXT) |
220 #define DEVICE_XATOM_DELETE(d) (DEVICE_X_DATA (d)->Xatom_DELETE) | 220 #define DEVICE_XATOM_DELETE(d) (DEVICE_X_DATA (d)->Xatom_DELETE) |
221 #define DEVICE_XATOM_MULTIPLE(d) (DEVICE_X_DATA (d)->Xatom_MULTIPLE) | 221 #define DEVICE_XATOM_MULTIPLE(d) (DEVICE_X_DATA (d)->Xatom_MULTIPLE) |
379 | 379 |
380 extern struct console_type *x_console_type; | 380 extern struct console_type *x_console_type; |
381 extern Lisp_Object Vdefault_x_device; | 381 extern Lisp_Object Vdefault_x_device; |
382 | 382 |
383 /* Number of pixels below each line. */ | 383 /* Number of pixels below each line. */ |
384 extern int x_interline_space; /* #### implement me */ | 384 extern int x_interline_space; |
385 | 385 |
386 extern int x_selection_timeout; | 386 extern int x_selection_timeout; |
387 | 387 |
388 struct frame *x_any_window_to_frame (struct device *d, Window); | 388 struct frame *x_any_window_to_frame (struct device *d, Window); |
389 struct frame *x_any_widget_or_parent_to_frame (struct device *d, | 389 struct frame *x_any_widget_or_parent_to_frame (struct device *d, |
396 void x_handle_selection_notify (XSelectionEvent *event); | 396 void x_handle_selection_notify (XSelectionEvent *event); |
397 void x_handle_selection_request (XSelectionRequestEvent *event); | 397 void x_handle_selection_request (XSelectionRequestEvent *event); |
398 void x_handle_selection_clear (XSelectionClearEvent *event); | 398 void x_handle_selection_clear (XSelectionClearEvent *event); |
399 void x_handle_property_notify (XPropertyEvent *event); | 399 void x_handle_property_notify (XPropertyEvent *event); |
400 | 400 |
401 void Xatoms_of_select_x (struct device *d); | 401 void Xatoms_of_xselect (struct device *d); |
402 void Xatoms_of_objects_x (struct device *d); | 402 void Xatoms_of_objects_x (struct device *d); |
403 | 403 |
404 void x_wm_set_shell_iconic_p (Widget shell, int iconic_p); | 404 void x_wm_set_shell_iconic_p (Widget shell, int iconic_p); |
405 void x_wm_set_cell_size (Widget wmshell, int cw, int ch); | 405 void x_wm_set_cell_size (Widget wmshell, int cw, int ch); |
406 void x_wm_set_variable_size (Widget wmshell, int width, int height); | 406 void x_wm_set_variable_size (Widget wmshell, int width, int height); |
407 | 407 |
408 const char *x_event_name (int event_type); | 408 CONST char *x_event_name (int event_type); |
409 int x_error_handler (Display *disp, XErrorEvent *event); | 409 int x_error_handler (Display *disp, XErrorEvent *event); |
410 void expect_x_error (Display *dpy); | 410 void expect_x_error (Display *dpy); |
411 int x_error_occurred_p (Display *dpy); | 411 int x_error_occurred_p (Display *dpy); |
412 int signal_if_x_error (Display *dpy, int resumable_p); | 412 int signal_if_x_error (Display *dpy, int resumable_p); |
413 int x_IO_error_handler (Display *disp); | 413 int x_IO_error_handler (Display *disp); |
417 void x_output_string (struct window *w, struct display_line *dl, | 417 void x_output_string (struct window *w, struct display_line *dl, |
418 Emchar_dynarr *buf, int xpos, int xoffset, | 418 Emchar_dynarr *buf, int xpos, int xoffset, |
419 int start_pixpos, int width, face_index findex, | 419 int start_pixpos, int width, face_index findex, |
420 int cursor, int cursor_start, int cursor_width, | 420 int cursor, int cursor_start, int cursor_width, |
421 int cursor_height); | 421 int cursor_height); |
422 void x_output_x_pixmap (struct frame *f, Lisp_Image_Instance *p, | 422 void x_output_x_pixmap (struct frame *f, struct Lisp_Image_Instance *p, |
423 int x, int y, int xoffset, int yoffset, | 423 int x, int y, int clip_x, int clip_y, |
424 int width, int height, | 424 int clip_width, int clip_height, int width, |
425 int height, int pixmap_offset, | |
425 unsigned long fg, unsigned long bg, | 426 unsigned long fg, unsigned long bg, |
426 GC override_gc); | 427 GC override_gc); |
427 void x_output_shadows (struct frame *f, int x, int y, int width, | 428 void x_output_shadows (struct frame *f, int x, int y, int width, |
428 int height, GC top_shadow_gc, | 429 int height, GC top_shadow_gc, |
429 GC bottom_shadow_gc, GC background_gc, | 430 GC bottom_shadow_gc, GC background_gc, |
430 int shadow_thickness, int edges); | 431 int shadow_thickness); |
431 void x_generate_shadow_pixels (struct frame *f, | 432 void x_generate_shadow_pixels (struct frame *f, |
432 unsigned long *top_shadow, | 433 unsigned long *top_shadow, |
433 unsigned long *bottom_shadow, | 434 unsigned long *bottom_shadow, |
434 unsigned long background, | 435 unsigned long background, |
435 unsigned long core_background); | 436 unsigned long core_background); |
436 | 437 |
437 int x_initialize_frame_menubar (struct frame *f); | 438 int x_initialize_frame_menubar (struct frame *f); |
438 void x_init_modifier_mapping (struct device *d); | 439 void x_init_modifier_mapping (struct device *d); |
439 | 440 |
440 #define X_ERROR_OCCURRED(dpy, body) \ | 441 #define X_ERROR_OCCURRED(dpy, body) \ |
441 (expect_x_error (dpy), body, x_error_occurred_p (dpy)) | 442 (expect_x_error ((dpy)), (body), x_error_occurred_p (dpy)) |
442 | 443 |
443 #define HANDLING_X_ERROR(dpy, body) \ | 444 #define HANDLING_X_ERROR(dpy, body) \ |
444 (expect_x_error (dpy), body, signal_if_x_error (dpy, 0)) | 445 ( expect_x_error ((dpy)), (body), signal_if_x_error ((dpy), 0)) |
445 | 446 |
446 void Initialize_Locale (void); | 447 void Initialize_Locale (void); |
447 | 448 |
448 #ifdef HAVE_XIM | 449 #ifdef HAVE_XIM |
449 | 450 |
490 extern int in_specifier_change_function; | 491 extern int in_specifier_change_function; |
491 | 492 |
492 extern Lisp_Object Vx_initial_argv_list; /* #### ugh! */ | 493 extern Lisp_Object Vx_initial_argv_list; /* #### ugh! */ |
493 | 494 |
494 #endif /* HAVE_X_WINDOWS */ | 495 #endif /* HAVE_X_WINDOWS */ |
495 | 496 #endif /* _XEMACS_DEVICE_X_H_ */ |
496 #endif /* INCLUDED_console_x_h_ */ |