comparison src/xterm.h @ 21515:fb4c986db0e2

Add more prototypes.
author Andreas Schwab <schwab@suse.de>
date Tue, 14 Apr 1998 12:33:47 +0000
parents 460d5452a852
children b2295127eff0
comparison
equal deleted inserted replaced
21514:fa9ff387d260 21515:fb4c986db0e2
746 (((struct selection_input_event *) (eventp))->time) 746 (((struct selection_input_event *) (eventp))->time)
747 747
748 748
749 /* Interface to the face code functions. */ 749 /* Interface to the face code functions. */
750 750
751 /* Forward declarations for prototypes. */
752 struct frame;
753 struct window;
754 struct input_event;
755
751 /* Create the first two computed faces for a frame -- the ones that 756 /* Create the first two computed faces for a frame -- the ones that
752 have GC's. */ 757 have GC's. */
753 extern void init_frame_faces (/* FRAME_PTR */); 758 extern void init_frame_faces P_ ((struct frame *));
754 759
755 /* Free the resources for the faces associated with a frame. */ 760 /* Free the resources for the faces associated with a frame. */
756 extern void free_frame_faces (/* FRAME_PTR */); 761 extern void free_frame_faces P_ ((struct frame *));
757 762
758 /* Given a computed face, find or make an equivalent display face 763 /* Given a computed face, find or make an equivalent display face
759 in face_vector, and return a pointer to it. */ 764 in face_vector, and return a pointer to it. */
760 extern struct face *intern_face (/* FRAME_PTR, struct face * */); 765 extern struct face *intern_face P_ ((struct frame *, struct face *));
761 766
762 /* Given a frame and a face name, return the face's ID number, or 767 /* Given a frame and a face name, return the face's ID number, or
763 zero if it isn't a recognized face name. */ 768 zero if it isn't a recognized face name. */
764 extern int face_name_id_number (/* FRAME_PTR, Lisp_Object */); 769 extern int face_name_id_number P_ ((struct frame *, Lisp_Object));
765 770
766 /* Return non-zero if FONT1 and FONT2 have the same size bounding box. 771 /* Return non-zero if FONT1 and FONT2 have the same size bounding box.
767 We assume that they're both character-cell fonts. */ 772 We assume that they're both character-cell fonts. */
768 extern int same_size_fonts (/* XFontStruct *, XFontStruct * */); 773 extern int same_size_fonts P_ ((XFontStruct *, XFontStruct *));
769 774
770 /* Recompute the GC's for the default and modeline faces. 775 /* Recompute the GC's for the default and modeline faces.
771 We call this after changing frame parameters on which those GC's 776 We call this after changing frame parameters on which those GC's
772 depend. */ 777 depend. */
773 extern void recompute_basic_faces (/* FRAME_PTR */); 778 extern void recompute_basic_faces P_ ((struct frame *));
774 779
775 /* Return the face ID associated with a buffer position POS. Store 780 /* Return the face ID associated with a buffer position POS. Store
776 into *ENDPTR the next position at which a different face is 781 into *ENDPTR the next position at which a different face is
777 needed. This does not take account of glyphs that specify their 782 needed. This does not take account of glyphs that specify their
778 own face codes. F is the frame in use for display, and W is a 783 own face codes. F is the frame in use for display, and W is a
779 window displaying the current buffer. 784 window displaying the current buffer.
780 785
781 REGION_BEG, REGION_END delimit the region, so it can be highlighted. */ 786 REGION_BEG, REGION_END delimit the region, so it can be highlighted. */
782 extern int compute_char_face (/* FRAME_PTR frame, 787 extern int compute_char_face P_ ((struct frame *frame,
783 struct window *w, 788 struct window *w,
784 int pos, 789 int pos,
785 int region_beg, int region_end, 790 int region_beg, int region_end,
786 int *endptr */); 791 int *endptr,
792 int limit, int mouse));
787 /* Return the face ID to use to display a special glyph which selects 793 /* Return the face ID to use to display a special glyph which selects
788 FACE_CODE as the face ID, assuming that ordinarily the face would 794 FACE_CODE as the face ID, assuming that ordinarily the face would
789 be BASIC_FACE. F is the frame. */ 795 be BASIC_FACE. F is the frame. */
790 extern int compute_glyph_face (/* FRAME_PTR, int */); 796 extern int compute_glyph_face P_ ((struct frame *, int, int));
797
798 /* Given a pixel position (PIX_X, PIX_Y) on the frame F, return
799 glyph co-ordinates in (*X, *Y). Set *BOUNDS to the rectangle
800 that the glyph at X, Y occupies, if BOUNDS != 0.
801 If NOCLIP is nonzero, do not force the value into range. */
802
803 extern void pixel_to_glyph_coords P_ ((struct frame *f, int pix_x, int pix_y,
804 int *x, int *y, XRectangle *bounds,
805 int noclip));
806
807 extern void glyph_to_pixel_coords P_ ((struct frame *f, int x, int y,
808 int *pix_x, int *pix_y));
809
810 /* Defined in xterm.c */
811
812 extern void cancel_mouse_face P_ ((struct frame *));
813 extern void x_scroll_bar_clear P_ ((struct frame *));
814 extern void x_start_queuing_selection_requests P_ ((Display *));
815 extern void x_stop_queuing_selection_requests P_ ((Display *));
816 extern void x_display_cursor P_ ((struct frame *, int, int, int));
817 extern void x_update_cursor P_ ((struct frame *, int));
818 extern int x_text_icon P_ ((struct frame *, char *));
819 extern int x_bitmap_icon P_ ((struct frame *, Lisp_Object));
820 extern int x_catch_errors P_ ((Display *));
821 extern void x_check_errors P_ ((Display *, char *));
822 extern int x_had_errors_p P_ ((Display *));
823 extern void x_uncatch_errors P_ ((Display *, int));
824 extern Lisp_Object x_new_font P_ ((struct frame *, char *));
825 extern Lisp_Object x_new_fontset P_ ((struct frame *, char *));
826 extern void x_set_offset P_ ((struct frame *, int, int, int));
827 extern void x_set_window_size P_ ((struct frame *, int, int, int));
828 extern void x_set_mouse_position P_ ((struct frame *, int, int));
829 extern void x_set_mouse_pixel_position P_ ((struct frame *, int, int));
830 extern void x_raise_frame P_ ((struct frame *));
831 extern void x_lower_frame P_ ((struct frame *));
832 extern void x_make_frame_visible P_ ((struct frame *));
833 extern void x_make_frame_invisible P_ ((struct frame *));
834 extern void x_iconify_frame P_ ((struct frame *));
835 extern void x_destroy_window P_ ((struct frame *));
836 extern void x_wm_set_size_hint P_ ((struct frame *, long, int));
837 extern void x_wm_set_window_state P_ ((struct frame *, int));
838 extern void x_wm_set_icon_pixmap P_ ((struct frame *, int));
839 extern void x_wm_set_icon_position P_ ((struct frame *, int, int));
840 extern void x_delete_display P_ ((struct x_display_info *));
841 extern void x_initialize P_ ((void));
842
843 /* Defined in xselect.c */
844
845 extern void x_handle_property_notify P_ ((XPropertyEvent *));
846 extern void x_handle_selection_notify P_ ((XSelectionEvent *));
847 extern void x_handle_selection_request P_ ((struct input_event *));
848 extern void x_handle_selection_clear P_ ((struct input_event *));
849 extern void x_clear_frame_selections P_ ((struct frame *));
850
851 /* Defined in xfns.c */
852
853 extern int have_menus_p P_ ((void));
854 extern int x_bitmap_height P_ ((struct frame *, int));
855 extern int x_bitmap_width P_ ((struct frame *, int));
856 extern int x_bitmap_pixmap P_ ((struct frame *, int));
857 extern void x_reference_bitmap P_ ((struct frame *, int));
858 extern int x_create_bitmap_from_data P_ ((struct frame *, char *,
859 unsigned int, unsigned int));
860 extern int x_create_bitmap_from_file P_ ((struct frame *, Lisp_Object));
861 extern void x_destroy_bitmap P_ ((struct frame *, int));
862 extern void x_set_frame_parameters P_ ((struct frame *, Lisp_Object));
863 extern void x_real_positions P_ ((struct frame *, int *, int *));
864 extern void x_report_frame_params P_ ((struct frame *, Lisp_Object *));
865 extern int defined_color P_ ((struct frame *, char *, XColor *, int));
866 extern void x_set_border_pixel P_ ((struct frame *, int));
867 extern void x_set_menu_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object));
868 extern void x_implicitly_set_name P_ ((struct frame *, Lisp_Object, Lisp_Object));
869 extern int x_pixel_width P_ ((struct frame *));
870 extern int x_pixel_height P_ ((struct frame *));
871 extern int x_char_width P_ ((struct frame *));
872 extern int x_char_height P_ ((struct frame *));
873 extern int x_screen_planes P_ ((struct frame *));
874 extern void x_sync P_ ((struct frame *));
875
876 /* Defined in xfaces.c */
877 extern int frame_update_line_height P_ ((struct frame *));
878 extern void clear_face_cache P_ ((void));
879 extern int compute_glyph_face P_ ((struct frame *, int, int));
880 extern int compute_glyph_face_1 P_ ((struct frame *, Lisp_Object, int));
881
882 /* Defined in xmenu.c */
883 extern void x_activate_menubar P_ ((struct frame *));
884 extern int popup_activated P_ ((void));
885 extern void initialize_frame_menubar P_ ((struct frame *));
886
887 /* Defined in widget.c */
888 extern void widget_store_internal_border P_ ((Widget));