Mercurial > emacs
comparison src/xterm.h @ 50372:ff37be8c3a2a
(EMACS_CLASS): Remove. Use generic define.
(struct w32_display_info): Fix type of xrdb member.
(enum FULLSCREEN_*): Remove.
Remove prototypes for generic functions (in frame.h).
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Mon, 31 Mar 2003 20:36:37 +0000 |
parents | 04d8f8a13cf8 |
children | d0f7882a3321 |
comparison
equal
deleted
inserted
replaced
50371:45e825260791 | 50372:ff37be8c3a2a |
---|---|
47 #undef XSync | 47 #undef XSync |
48 #define XSync(d, b) gdk_window_process_all_updates () | 48 #define XSync(d, b) gdk_window_process_all_updates () |
49 | 49 |
50 #endif /* USE_GTK */ | 50 #endif /* USE_GTK */ |
51 | 51 |
52 /* The class of this X application. */ | |
53 #define EMACS_CLASS "Emacs" | |
54 | 52 |
55 /* Bookkeeping to distinguish X versions. */ | 53 /* Bookkeeping to distinguish X versions. */ |
56 | 54 |
57 /* HAVE_X11R4 is defined if we have the features of X11R4. It should | 55 /* HAVE_X11R4 is defined if we have the features of X11R4. It should |
58 be defined when we're using X11R5, since X11R5 has the features of | 56 be defined when we're using X11R5, since X11R5 has the features of |
646 | 644 |
647 #define No_Cursor (None) | 645 #define No_Cursor (None) |
648 | 646 |
649 enum | 647 enum |
650 { | 648 { |
651 /* Values used as a bit mask, BOTH == WIDTH | HEIGHT. */ | |
652 FULLSCREEN_NONE = 0, | |
653 FULLSCREEN_WIDTH = 1, | |
654 FULLSCREEN_HEIGHT = 2, | |
655 FULLSCREEN_BOTH = 3, | |
656 FULLSCREEN_WAIT = 4, | |
657 FULLSCREEN_MOVE_WAIT = 8, | |
658 }; | |
659 | |
660 enum | |
661 { | |
662 /* Values for focus_state, used as bit mask. | 649 /* Values for focus_state, used as bit mask. |
663 EXPLICIT means we received a FocusIn for the frame and know it has | 650 EXPLICIT means we received a FocusIn for the frame and know it has |
664 the focus. IMPLICIT means we recevied an EnterNotify and the frame | 651 the focus. IMPLICIT means we recevied an EnterNotify and the frame |
665 may have the focus if no window manager is running. | 652 may have the focus if no window manager is running. |
666 FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */ | 653 FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */ |
1028 int image_ascent P_ ((struct image *, struct face *)); | 1015 int image_ascent P_ ((struct image *, struct face *)); |
1029 extern void x_free_gcs P_ ((struct frame *)); | 1016 extern void x_free_gcs P_ ((struct frame *)); |
1030 | 1017 |
1031 /* From xrdb.c. */ | 1018 /* From xrdb.c. */ |
1032 | 1019 |
1033 char *x_get_string_resource P_ ((XrmDatabase, char *, char *)); | |
1034 char *x_get_customization_string P_ ((XrmDatabase, char *, char *)); | 1020 char *x_get_customization_string P_ ((XrmDatabase, char *, char *)); |
1035 XrmDatabase x_load_resources P_ ((Display *, char *, char *, char *)); | 1021 XrmDatabase x_load_resources P_ ((Display *, char *, char *, char *)); |
1036 int x_get_resource P_ ((XrmDatabase, char *, char *, | 1022 int x_get_resource P_ ((XrmDatabase, char *, char *, |
1037 XrmRepresentation, XrmValue *)); | 1023 XrmRepresentation, XrmValue *)); |
1038 void x_delete_display P_ ((struct x_display_info *)); | 1024 void x_delete_display P_ ((struct x_display_info *)); |
1039 void x_make_frame_visible P_ ((struct frame *)); | 1025 void x_make_frame_visible P_ ((struct frame *)); |
1040 void x_iconify_frame P_ ((struct frame *)); | 1026 void x_iconify_frame P_ ((struct frame *)); |
1041 void x_wm_set_size_hint P_ ((struct frame *, long, int)); | 1027 void x_wm_set_size_hint P_ ((struct frame *, long, int)); |
1042 void x_set_offset P_ ((struct frame *, int, int, int)); | |
1043 void x_wm_set_icon_position P_ ((struct frame *, int, int)); | |
1044 int x_catch_errors P_ ((Display *)); | 1028 int x_catch_errors P_ ((Display *)); |
1045 int x_had_errors_p P_ ((Display *)); | 1029 int x_had_errors_p P_ ((Display *)); |
1046 void x_uncatch_errors P_ ((Display *, int)); | 1030 void x_uncatch_errors P_ ((Display *, int)); |
1047 void x_check_errors P_ ((Display *, char *)); | 1031 void x_check_errors P_ ((Display *, char *)); |
1048 int x_text_icon P_ ((struct frame *, char *)); | 1032 int x_text_icon P_ ((struct frame *, char *)); |
1061 extern int x_bitmap_icon P_ ((struct frame *, Lisp_Object)); | 1045 extern int x_bitmap_icon P_ ((struct frame *, Lisp_Object)); |
1062 extern int x_catch_errors P_ ((Display *)); | 1046 extern int x_catch_errors P_ ((Display *)); |
1063 extern void x_check_errors P_ ((Display *, char *)); | 1047 extern void x_check_errors P_ ((Display *, char *)); |
1064 extern int x_had_errors_p P_ ((Display *)); | 1048 extern int x_had_errors_p P_ ((Display *)); |
1065 extern void x_uncatch_errors P_ ((Display *, int)); | 1049 extern void x_uncatch_errors P_ ((Display *, int)); |
1066 extern Lisp_Object x_new_font P_ ((struct frame *, char *)); | |
1067 extern Lisp_Object x_new_fontset P_ ((struct frame *, char *)); | |
1068 extern void x_set_offset P_ ((struct frame *, int, int, int)); | |
1069 extern void x_set_window_size P_ ((struct frame *, int, int, int)); | 1050 extern void x_set_window_size P_ ((struct frame *, int, int, int)); |
1070 extern void x_set_mouse_position P_ ((struct frame *, int, int)); | 1051 extern void x_set_mouse_position P_ ((struct frame *, int, int)); |
1071 extern void x_set_mouse_pixel_position P_ ((struct frame *, int, int)); | 1052 extern void x_set_mouse_pixel_position P_ ((struct frame *, int, int)); |
1072 extern void x_raise_frame P_ ((struct frame *)); | 1053 extern void x_raise_frame P_ ((struct frame *)); |
1073 extern void x_lower_frame P_ ((struct frame *)); | 1054 extern void x_lower_frame P_ ((struct frame *)); |
1077 extern void x_free_frame_resources P_ ((struct frame *)); | 1058 extern void x_free_frame_resources P_ ((struct frame *)); |
1078 extern void x_destroy_window P_ ((struct frame *)); | 1059 extern void x_destroy_window P_ ((struct frame *)); |
1079 extern void x_wm_set_size_hint P_ ((struct frame *, long, int)); | 1060 extern void x_wm_set_size_hint P_ ((struct frame *, long, int)); |
1080 extern void x_wm_set_window_state P_ ((struct frame *, int)); | 1061 extern void x_wm_set_window_state P_ ((struct frame *, int)); |
1081 extern void x_wm_set_icon_pixmap P_ ((struct frame *, int)); | 1062 extern void x_wm_set_icon_pixmap P_ ((struct frame *, int)); |
1082 extern void x_wm_set_icon_position P_ ((struct frame *, int, int)); | |
1083 extern void x_delete_display P_ ((struct x_display_info *)); | 1063 extern void x_delete_display P_ ((struct x_display_info *)); |
1084 extern void x_initialize P_ ((void)); | 1064 extern void x_initialize P_ ((void)); |
1085 extern unsigned long x_copy_color P_ ((struct frame *, unsigned long)); | 1065 extern unsigned long x_copy_color P_ ((struct frame *, unsigned long)); |
1086 #ifdef USE_X_TOOLKIT | 1066 #ifdef USE_X_TOOLKIT |
1087 extern XtAppContext Xt_app_con; | 1067 extern XtAppContext Xt_app_con; |
1088 #endif | 1068 #endif |
1089 extern void x_query_colors P_ ((struct frame *f, XColor *, int)); | 1069 extern void x_query_colors P_ ((struct frame *f, XColor *, int)); |
1090 extern void x_query_color P_ ((struct frame *f, XColor *)); | 1070 extern void x_query_color P_ ((struct frame *f, XColor *)); |
1091 extern void x_clear_area P_ ((Display *, Window, int, int, int, int, int)); | 1071 extern void x_clear_area P_ ((Display *, Window, int, int, int, int, int)); |
1092 | |
1093 extern void x_fullscreen_adjust P_ ((struct frame *f, int *, int *, | |
1094 int *, int *)); | |
1095 | 1072 |
1096 extern int x_dispatch_event P_ ((XEvent *, Display *)); | 1073 extern int x_dispatch_event P_ ((XEvent *, Display *)); |
1097 | 1074 |
1098 /* Defined in xselect.c */ | 1075 /* Defined in xselect.c */ |
1099 | 1076 |
1112 extern void x_reference_bitmap P_ ((struct frame *, int)); | 1089 extern void x_reference_bitmap P_ ((struct frame *, int)); |
1113 extern int x_create_bitmap_from_data P_ ((struct frame *, char *, | 1090 extern int x_create_bitmap_from_data P_ ((struct frame *, char *, |
1114 unsigned int, unsigned int)); | 1091 unsigned int, unsigned int)); |
1115 extern int x_create_bitmap_from_file P_ ((struct frame *, Lisp_Object)); | 1092 extern int x_create_bitmap_from_file P_ ((struct frame *, Lisp_Object)); |
1116 extern void x_destroy_bitmap P_ ((struct frame *, int)); | 1093 extern void x_destroy_bitmap P_ ((struct frame *, int)); |
1117 extern void x_set_frame_parameters P_ ((struct frame *, Lisp_Object)); | |
1118 extern void x_real_positions P_ ((struct frame *, int *, int *)); | 1094 extern void x_real_positions P_ ((struct frame *, int *, int *)); |
1119 extern void x_report_frame_params P_ ((struct frame *, Lisp_Object *)); | |
1120 extern int defined_color P_ ((struct frame *, char *, XColor *, int)); | 1095 extern int defined_color P_ ((struct frame *, char *, XColor *, int)); |
1121 extern void x_set_border_pixel P_ ((struct frame *, int)); | 1096 extern void x_set_border_pixel P_ ((struct frame *, int)); |
1122 extern void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 1097 extern void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); |
1123 extern unsigned char * x_encode_text P_ ((Lisp_Object, Lisp_Object, int, | 1098 extern unsigned char * x_encode_text P_ ((Lisp_Object, Lisp_Object, int, |
1124 int *, int *)); | 1099 int *, int *)); |