Mercurial > emacs
comparison src/xterm.h @ 109423:ae5ef13849d8
Merge from mainline.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Sun, 04 Jul 2010 22:11:22 +0000 |
parents | e16f43875a48 |
children | a08a6559b47b |
comparison
equal
deleted
inserted
replaced
109422:bcedeeedc5fb | 109423:ae5ef13849d8 |
---|---|
376 /* Whether or not to use XIM if we have it. */ | 376 /* Whether or not to use XIM if we have it. */ |
377 extern int use_xim; | 377 extern int use_xim; |
378 #endif | 378 #endif |
379 | 379 |
380 /* This checks to make sure we have a display. */ | 380 /* This checks to make sure we have a display. */ |
381 extern void check_x P_ ((void)); | 381 extern void check_x (void); |
382 | 382 |
383 extern struct frame *x_window_to_frame P_ ((struct x_display_info *, int)); | 383 extern struct frame *x_window_to_frame (struct x_display_info *, int); |
384 | 384 |
385 extern struct frame *x_any_window_to_frame P_ ((struct x_display_info *, int)); | 385 extern struct frame *x_any_window_to_frame (struct x_display_info *, int); |
386 extern struct frame *x_menubar_window_to_frame P_ ((struct x_display_info *, int)); | 386 extern struct frame *x_menubar_window_to_frame (struct x_display_info *, int); |
387 extern struct frame *x_top_window_to_frame P_ ((struct x_display_info *, int)); | 387 extern struct frame *x_top_window_to_frame (struct x_display_info *, int); |
388 | 388 |
389 #if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) | 389 #if ! defined (USE_X_TOOLKIT) && ! defined (USE_GTK) |
390 #define x_any_window_to_frame x_window_to_frame | 390 #define x_any_window_to_frame x_window_to_frame |
391 #define x_top_window_to_frame x_window_to_frame | 391 #define x_top_window_to_frame x_window_to_frame |
392 #endif | 392 #endif |
401 extern Lisp_Object x_display_name_list; | 401 extern Lisp_Object x_display_name_list; |
402 | 402 |
403 /* Regexp matching a font name whose width is the same as `PIXEL_SIZE'. */ | 403 /* Regexp matching a font name whose width is the same as `PIXEL_SIZE'. */ |
404 extern Lisp_Object Vx_pixel_size_width_font_regexp; | 404 extern Lisp_Object Vx_pixel_size_width_font_regexp; |
405 | 405 |
406 extern struct x_display_info *x_display_info_for_display P_ ((Display *)); | 406 extern struct x_display_info *x_display_info_for_display (Display *); |
407 extern struct x_display_info *x_display_info_for_name P_ ((Lisp_Object)); | 407 extern struct x_display_info *x_display_info_for_name (Lisp_Object); |
408 extern void x_set_frame_alpha P_ ((struct frame *)); | 408 extern void x_set_frame_alpha (struct frame *); |
409 | 409 |
410 extern struct x_display_info *x_term_init P_ ((Lisp_Object, char *, char *)); | 410 extern struct x_display_info *x_term_init (Lisp_Object, char *, char *); |
411 extern int x_display_ok P_ ((const char *)); | 411 extern int x_display_ok (const char *); |
412 | 412 |
413 extern void select_visual P_ ((struct x_display_info *)); | 413 extern void select_visual (struct x_display_info *); |
414 | 414 |
415 | 415 |
416 struct font; | 416 struct font; |
417 | 417 |
418 /* Each X frame object points to its own struct x_output object | 418 /* Each X frame object points to its own struct x_output object |
913 struct face; | 913 struct face; |
914 struct image; | 914 struct image; |
915 | 915 |
916 /* From xselect.c. */ | 916 /* From xselect.c. */ |
917 | 917 |
918 void x_handle_selection_notify P_ ((XSelectionEvent *)); | 918 void x_handle_selection_notify (XSelectionEvent *); |
919 void x_handle_property_notify P_ ((XPropertyEvent *)); | 919 void x_handle_property_notify (XPropertyEvent *); |
920 | 920 |
921 /* From xfns.c. */ | 921 /* From xfns.c. */ |
922 | 922 |
923 Lisp_Object display_x_get_resource P_ ((struct x_display_info *, | 923 Lisp_Object display_x_get_resource (struct x_display_info *, |
924 Lisp_Object, Lisp_Object, | 924 Lisp_Object, Lisp_Object, |
925 Lisp_Object, Lisp_Object)); | 925 Lisp_Object, Lisp_Object); |
926 struct frame *check_x_frame P_ ((Lisp_Object)); | 926 struct frame *check_x_frame (Lisp_Object); |
927 EXFUN (Fx_display_color_p, 1); | 927 EXFUN (Fx_display_color_p, 1); |
928 EXFUN (Fx_display_grayscale_p, 1); | 928 EXFUN (Fx_display_grayscale_p, 1); |
929 extern void x_free_gcs P_ ((struct frame *)); | 929 extern void x_free_gcs (struct frame *); |
930 | 930 |
931 /* From xrdb.c. */ | 931 /* From xrdb.c. */ |
932 | 932 |
933 char *x_get_customization_string P_ ((XrmDatabase, char *, char *)); | 933 char *x_get_customization_string (XrmDatabase, char *, char *); |
934 XrmDatabase x_load_resources P_ ((Display *, char *, char *, char *)); | 934 XrmDatabase x_load_resources (Display *, char *, char *, char *); |
935 int x_get_resource P_ ((XrmDatabase, char *, char *, | 935 int x_get_resource (XrmDatabase, char *, char *, |
936 XrmRepresentation, XrmValue *)); | 936 XrmRepresentation, XrmValue *); |
937 void x_delete_display P_ ((struct x_display_info *)); | 937 void x_delete_display (struct x_display_info *); |
938 void x_make_frame_visible P_ ((struct frame *)); | 938 void x_make_frame_visible (struct frame *); |
939 void x_iconify_frame P_ ((struct frame *)); | 939 void x_iconify_frame (struct frame *); |
940 void x_wm_set_size_hint P_ ((struct frame *, long, int)); | 940 void x_wm_set_size_hint (struct frame *, long, int); |
941 int x_text_icon P_ ((struct frame *, char *)); | 941 int x_text_icon (struct frame *, char *); |
942 int x_bitmap_icon P_ ((struct frame *, Lisp_Object)); | 942 int x_bitmap_icon (struct frame *, Lisp_Object); |
943 void x_set_window_size P_ ((struct frame *, int, int, int)); | 943 void x_set_window_size (struct frame *, int, int, int); |
944 void x_wm_set_window_state P_ ((struct frame *, int)); | 944 void x_wm_set_window_state (struct frame *, int); |
945 int x_alloc_nearest_color P_ ((struct frame *, Colormap, XColor *)); | 945 int x_alloc_nearest_color (struct frame *, Colormap, XColor *); |
946 | 946 |
947 /* Defined in xterm.c */ | 947 /* Defined in xterm.c */ |
948 | 948 |
949 extern void cancel_mouse_face P_ ((struct frame *)); | 949 extern void cancel_mouse_face (struct frame *); |
950 extern void x_scroll_bar_clear P_ ((struct frame *)); | 950 extern void x_scroll_bar_clear (struct frame *); |
951 extern int x_text_icon P_ ((struct frame *, char *)); | 951 extern int x_text_icon (struct frame *, char *); |
952 extern int x_bitmap_icon P_ ((struct frame *, Lisp_Object)); | 952 extern int x_bitmap_icon (struct frame *, Lisp_Object); |
953 extern void x_catch_errors P_ ((Display *)); | 953 extern void x_catch_errors (Display *); |
954 extern void x_check_errors P_ ((Display *, char *)); | 954 extern void x_check_errors (Display *, char *); |
955 extern int x_had_errors_p P_ ((Display *)); | 955 extern int x_had_errors_p (Display *); |
956 extern int x_catching_errors P_ ((void)); | 956 extern int x_catching_errors (void); |
957 extern void x_uncatch_errors P_ ((void)); | 957 extern void x_uncatch_errors (void); |
958 extern void x_clear_errors P_ ((Display *)); | 958 extern void x_clear_errors (Display *); |
959 extern void x_set_window_size P_ ((struct frame *, int, int, int)); | 959 extern void x_set_window_size (struct frame *, int, int, int); |
960 extern void x_set_mouse_position P_ ((struct frame *, int, int)); | 960 extern void x_set_mouse_position (struct frame *, int, int); |
961 extern void x_set_mouse_pixel_position P_ ((struct frame *, int, int)); | 961 extern void x_set_mouse_pixel_position (struct frame *, int, int); |
962 extern void x_ewmh_activate_frame P_ ((struct frame *)); | 962 extern void x_ewmh_activate_frame (struct frame *); |
963 extern void x_raise_frame P_ ((struct frame *)); | 963 extern void x_raise_frame (struct frame *); |
964 extern void x_lower_frame P_ ((struct frame *)); | 964 extern void x_lower_frame (struct frame *); |
965 extern void x_make_frame_visible P_ ((struct frame *)); | 965 extern void x_make_frame_visible (struct frame *); |
966 extern void x_make_frame_invisible P_ ((struct frame *)); | 966 extern void x_make_frame_invisible (struct frame *); |
967 extern void x_iconify_frame P_ ((struct frame *)); | 967 extern void x_iconify_frame (struct frame *); |
968 extern void x_free_frame_resources P_ ((struct frame *)); | 968 extern void x_free_frame_resources (struct frame *); |
969 extern void x_destroy_window P_ ((struct frame *)); | 969 extern void x_destroy_window (struct frame *); |
970 extern void x_wm_set_size_hint P_ ((struct frame *, long, int)); | 970 extern void x_wm_set_size_hint (struct frame *, long, int); |
971 extern void x_wm_set_window_state P_ ((struct frame *, int)); | 971 extern void x_wm_set_window_state (struct frame *, int); |
972 extern void x_wm_set_icon_pixmap P_ ((struct frame *, int)); | 972 extern void x_wm_set_icon_pixmap (struct frame *, int); |
973 extern void x_delete_display P_ ((struct x_display_info *)); | 973 extern void x_delete_display (struct x_display_info *); |
974 extern void x_delete_terminal P_ ((struct terminal *terminal)); | 974 extern void x_delete_terminal (struct terminal *terminal); |
975 extern void x_initialize P_ ((void)); | 975 extern void x_initialize (void); |
976 extern unsigned long x_copy_color P_ ((struct frame *, unsigned long)); | 976 extern unsigned long x_copy_color (struct frame *, unsigned long); |
977 #ifdef USE_X_TOOLKIT | 977 #ifdef USE_X_TOOLKIT |
978 extern XtAppContext Xt_app_con; | 978 extern XtAppContext Xt_app_con; |
979 extern int x_alloc_lighter_color_for_widget __P ((Widget, Display*, Colormap, | 979 extern int x_alloc_lighter_color_for_widget (Widget, Display*, Colormap, |
980 unsigned long *, | 980 unsigned long *, |
981 double, int)); | 981 double, int); |
982 extern void x_activate_timeout_atimer P_ ((void)); | 982 extern void x_activate_timeout_atimer (void); |
983 #endif | 983 #endif |
984 extern void x_query_colors P_ ((struct frame *f, XColor *, int)); | 984 extern void x_query_colors (struct frame *f, XColor *, int); |
985 extern void x_query_color P_ ((struct frame *f, XColor *)); | 985 extern void x_query_color (struct frame *f, XColor *); |
986 extern void x_clear_area P_ ((Display *, Window, int, int, int, int, int)); | 986 extern void x_clear_area (Display *, Window, int, int, int, int, int); |
987 extern void set_vertical_scroll_bar P_ ((struct window *)); | 987 extern void set_vertical_scroll_bar (struct window *); |
988 | 988 |
989 extern int x_dispatch_event P_ ((XEvent *, Display *)); | 989 extern int x_dispatch_event (XEvent *, Display *); |
990 extern unsigned int x_x_to_emacs_modifiers P_ ((struct x_display_info *, | 990 extern unsigned int x_x_to_emacs_modifiers (struct x_display_info *, |
991 unsigned)); | 991 unsigned); |
992 extern int x_display_pixel_height P_ ((struct x_display_info *)); | 992 extern int x_display_pixel_height (struct x_display_info *); |
993 extern int x_display_pixel_width P_ ((struct x_display_info *)); | 993 extern int x_display_pixel_width (struct x_display_info *); |
994 | 994 |
995 extern void x_set_sticky P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 995 extern void x_set_sticky (struct frame *, Lisp_Object, Lisp_Object); |
996 extern void x_wait_for_event P_ ((struct frame *, int)); | 996 extern void x_wait_for_event (struct frame *, int); |
997 | 997 |
998 /* Defined in xselect.c */ | 998 /* Defined in xselect.c */ |
999 | 999 |
1000 extern void x_handle_property_notify P_ ((XPropertyEvent *)); | 1000 extern void x_handle_property_notify (XPropertyEvent *); |
1001 extern void x_handle_selection_notify P_ ((XSelectionEvent *)); | 1001 extern void x_handle_selection_notify (XSelectionEvent *); |
1002 extern void x_handle_selection_event P_ ((struct input_event *)); | 1002 extern void x_handle_selection_event (struct input_event *); |
1003 extern void x_clear_frame_selections P_ ((struct frame *)); | 1003 extern void x_clear_frame_selections (struct frame *); |
1004 | 1004 |
1005 extern int x_handle_dnd_message P_ ((struct frame *, | 1005 extern int x_handle_dnd_message (struct frame *, |
1006 XClientMessageEvent *, | 1006 XClientMessageEvent *, |
1007 struct x_display_info *, | 1007 struct x_display_info *, |
1008 struct input_event *bufp)); | 1008 struct input_event *bufp); |
1009 extern int x_check_property_data P_ ((Lisp_Object)); | 1009 extern int x_check_property_data (Lisp_Object); |
1010 extern void x_fill_property_data P_ ((Display *, | 1010 extern void x_fill_property_data (Display *, |
1011 Lisp_Object, | 1011 Lisp_Object, |
1012 void *, | 1012 void *, |
1013 int)); | 1013 int); |
1014 extern Lisp_Object x_property_data_to_lisp P_ ((struct frame *, | 1014 extern Lisp_Object x_property_data_to_lisp (struct frame *, |
1015 unsigned char *, | 1015 unsigned char *, |
1016 Atom, | 1016 Atom, |
1017 int, | 1017 int, |
1018 unsigned long)); | 1018 unsigned long); |
1019 | 1019 |
1020 /* Defined in xfns.c */ | 1020 /* Defined in xfns.c */ |
1021 | 1021 |
1022 extern struct x_display_info * check_x_display_info P_ ((Lisp_Object frame)); | 1022 extern struct x_display_info * check_x_display_info (Lisp_Object frame); |
1023 | 1023 |
1024 #ifdef USE_GTK | 1024 #ifdef USE_GTK |
1025 extern int xg_set_icon P_ ((struct frame *, Lisp_Object)); | 1025 extern int xg_set_icon (struct frame *, Lisp_Object); |
1026 extern int xg_set_icon_from_xpm_data P_ ((struct frame *, char**)); | 1026 extern int xg_set_icon_from_xpm_data (struct frame *, char**); |
1027 #endif /* USE_GTK */ | 1027 #endif /* USE_GTK */ |
1028 | 1028 |
1029 extern void x_real_positions P_ ((struct frame *, int *, int *)); | 1029 extern void x_real_positions (struct frame *, int *, int *); |
1030 extern int defined_color P_ ((struct frame *, char *, XColor *, int)); | 1030 extern int defined_color (struct frame *, char *, XColor *, int); |
1031 extern void x_set_border_pixel P_ ((struct frame *, int)); | 1031 extern void x_set_border_pixel (struct frame *, int); |
1032 extern void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 1032 extern void x_set_menu_bar_lines (struct frame *, Lisp_Object, Lisp_Object); |
1033 extern void x_implicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 1033 extern void x_implicitly_set_name (struct frame *, Lisp_Object, Lisp_Object); |
1034 extern void xic_free_xfontset P_ ((struct frame *)); | 1034 extern void xic_free_xfontset (struct frame *); |
1035 extern void create_frame_xic P_ ((struct frame *)); | 1035 extern void create_frame_xic (struct frame *); |
1036 extern void destroy_frame_xic P_ ((struct frame *)); | 1036 extern void destroy_frame_xic (struct frame *); |
1037 extern void xic_set_preeditarea P_ ((struct window *, int, int)); | 1037 extern void xic_set_preeditarea (struct window *, int, int); |
1038 extern void xic_set_statusarea P_ ((struct frame *)); | 1038 extern void xic_set_statusarea (struct frame *); |
1039 extern void xic_set_xfontset P_ ((struct frame *, char *)); | 1039 extern void xic_set_xfontset (struct frame *, char *); |
1040 extern int x_pixel_width P_ ((struct frame *)); | 1040 extern int x_pixel_width (struct frame *); |
1041 extern int x_pixel_height P_ ((struct frame *)); | 1041 extern int x_pixel_height (struct frame *); |
1042 extern int x_char_width P_ ((struct frame *)); | 1042 extern int x_char_width (struct frame *); |
1043 extern int x_char_height P_ ((struct frame *)); | 1043 extern int x_char_height (struct frame *); |
1044 extern int x_screen_planes P_ ((struct frame *)); | 1044 extern int x_screen_planes (struct frame *); |
1045 extern void x_sync P_ ((struct frame *)); | 1045 extern void x_sync (struct frame *); |
1046 extern int x_defined_color P_ ((struct frame *, char *, XColor *, int)); | 1046 extern int x_defined_color (struct frame *, char *, XColor *, int); |
1047 #ifdef HAVE_X_I18N | 1047 #ifdef HAVE_X_I18N |
1048 extern void free_frame_xic P_ ((struct frame *)); | 1048 extern void free_frame_xic (struct frame *); |
1049 #endif | 1049 #endif |
1050 extern void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 1050 extern void x_set_tool_bar_lines (struct frame *, Lisp_Object, Lisp_Object); |
1051 | 1051 |
1052 /* Defined in xfaces.c */ | 1052 /* Defined in xfaces.c */ |
1053 | 1053 |
1054 extern int compute_glyph_face P_ ((struct frame *, int, int)); | 1054 extern int compute_glyph_face (struct frame *, int, int); |
1055 extern int compute_glyph_face_1 P_ ((struct frame *, Lisp_Object, int)); | 1055 extern int compute_glyph_face_1 (struct frame *, Lisp_Object, int); |
1056 extern void x_free_dpy_colors P_ ((Display *, Screen *, Colormap, | 1056 extern void x_free_dpy_colors (Display *, Screen *, Colormap, |
1057 unsigned long *, int)); | 1057 unsigned long *, int); |
1058 | 1058 |
1059 /* Defined in xmenu.c */ | 1059 /* Defined in xmenu.c */ |
1060 | 1060 |
1061 extern void x_menu_set_in_use P_ ((int)); | 1061 extern void x_menu_set_in_use (int); |
1062 extern void x_menu_wait_for_event P_ ((void *data)); | 1062 extern void x_menu_wait_for_event (void *data); |
1063 extern void x_activate_menubar P_ ((struct frame *)); | 1063 extern void x_activate_menubar (struct frame *); |
1064 extern int popup_activated P_ ((void)); | 1064 extern int popup_activated (void); |
1065 extern void initialize_frame_menubar P_ ((struct frame *)); | 1065 extern void initialize_frame_menubar (struct frame *); |
1066 extern void free_frame_menubar P_ ((struct frame *)); | 1066 extern void free_frame_menubar (struct frame *); |
1067 | 1067 |
1068 /* Defined in widget.c */ | 1068 /* Defined in widget.c */ |
1069 | 1069 |
1070 #ifdef USE_X_TOOLKIT | 1070 #ifdef USE_X_TOOLKIT |
1071 extern void widget_store_internal_border P_ ((Widget)); | 1071 extern void widget_store_internal_border (Widget); |
1072 #endif | 1072 #endif |
1073 | 1073 |
1074 /* Defined in xsmfns.c */ | 1074 /* Defined in xsmfns.c */ |
1075 #ifdef HAVE_X_SM | 1075 #ifdef HAVE_X_SM |
1076 extern void x_session_initialize P_ ((struct x_display_info *dpyinfo)); | 1076 extern void x_session_initialize (struct x_display_info *dpyinfo); |
1077 extern int x_session_check_input P_ ((struct input_event *bufp)); | 1077 extern int x_session_check_input (struct input_event *bufp); |
1078 extern int x_session_have_connection P_ ((void)); | 1078 extern int x_session_have_connection (void); |
1079 extern void x_session_close P_ ((void)); | 1079 extern void x_session_close (void); |
1080 #endif | 1080 #endif |
1081 | 1081 |
1082 /* XEmbed implementation. */ | 1082 /* XEmbed implementation. */ |
1083 | 1083 |
1084 #define XEMBED_VERSION 0 | 1084 #define XEMBED_VERSION 0 |
1127 XEMBED_ACCELERATOR_OVERLOADED = 1 << 0 | 1127 XEMBED_ACCELERATOR_OVERLOADED = 1 << 0 |
1128 }; | 1128 }; |
1129 | 1129 |
1130 /* Defined in xterm.c */ | 1130 /* Defined in xterm.c */ |
1131 | 1131 |
1132 extern void xembed_set_info P_ ((struct frame *f, enum xembed_info flags)); | 1132 extern void xembed_set_info (struct frame *f, enum xembed_info flags); |
1133 extern void xembed_send_message P_ ((struct frame *f, Time time, | 1133 extern void xembed_send_message (struct frame *f, Time time, |
1134 enum xembed_message message, | 1134 enum xembed_message message, |
1135 long detail, long data1, long data2)); | 1135 long detail, long data1, long data2); |
1136 | 1136 |
1137 /* Is the frame embedded into another application? */ | 1137 /* Is the frame embedded into another application? */ |
1138 | 1138 |
1139 #define FRAME_X_EMBEDDED_P(f) (FRAME_X_OUTPUT(f)->explicit_parent != 0) | 1139 #define FRAME_X_EMBEDDED_P(f) (FRAME_X_OUTPUT(f)->explicit_parent != 0) |
1140 | 1140 |