aboutsummaryrefslogtreecommitdiffstats
path: root/src/macterm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/macterm.h')
-rw-r--r--src/macterm.h116
1 files changed, 86 insertions, 30 deletions
diff --git a/src/macterm.h b/src/macterm.h
index 1e0ffbab263..0a448484873 100644
--- a/src/macterm.h
+++ b/src/macterm.h
@@ -376,12 +376,6 @@ typedef struct mac_output mac_output;
376/* This is the 'font_info *' which frame F has. */ 376/* This is the 'font_info *' which frame F has. */
377#define FRAME_MAC_FONT_TABLE(f) (FRAME_MAC_DISPLAY_INFO (f)->font_table) 377#define FRAME_MAC_FONT_TABLE(f) (FRAME_MAC_DISPLAY_INFO (f)->font_table)
378 378
379/* The difference in pixels between the top left corner of the
380 Emacs window (including possible window manager decorations)
381 and FRAME_MAC_WINDOW (f). */
382#define FRAME_OUTER_TO_INNER_DIFF_X(f) ((f)->x_pixels_diff)
383#define FRAME_OUTER_TO_INNER_DIFF_Y(f) ((f)->y_pixels_diff)
384
385/* Value is the smallest width of any character in any font on frame F. */ 379/* Value is the smallest width of any character in any font on frame F. */
386 380
387#define FRAME_SMALLEST_CHAR_WIDTH(F) \ 381#define FRAME_SMALLEST_CHAR_WIDTH(F) \
@@ -549,8 +543,8 @@ struct scroll_bar {
549#define MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH (11) 543#define MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH (11)
550 544
551/* Size of hourglass controls */ 545/* Size of hourglass controls */
552#define HOURGLASS_WIDTH (16) 546#define HOURGLASS_WIDTH (15)
553#define HOURGLASS_HEIGHT (16) 547#define HOURGLASS_HEIGHT (15)
554 548
555/* Some constants that are used locally. */ 549/* Some constants that are used locally. */
556/* Creator code for Emacs on Mac OS. */ 550/* Creator code for Emacs on Mac OS. */
@@ -624,6 +618,8 @@ extern int XParseGeometry P_ ((char *, int *, int *, unsigned int *,
624extern void x_set_window_size P_ ((struct frame *, int, int, int)); 618extern void x_set_window_size P_ ((struct frame *, int, int, int));
625extern void x_set_mouse_position P_ ((struct frame *, int, int)); 619extern void x_set_mouse_position P_ ((struct frame *, int, int));
626extern void x_set_mouse_pixel_position P_ ((struct frame *, int, int)); 620extern void x_set_mouse_pixel_position P_ ((struct frame *, int, int));
621extern void x_raise_frame P_ ((struct frame *));
622extern void x_lower_frame P_ ((struct frame *));
627extern void x_make_frame_visible P_ ((struct frame *)); 623extern void x_make_frame_visible P_ ((struct frame *));
628extern void x_make_frame_invisible P_ ((struct frame *)); 624extern void x_make_frame_invisible P_ ((struct frame *));
629extern void x_iconify_frame P_ ((struct frame *)); 625extern void x_iconify_frame P_ ((struct frame *));
@@ -643,29 +639,12 @@ extern GC XCreateGC P_ ((Display *, void *, unsigned long, XGCValues *));
643extern void XFreeGC P_ ((Display *, GC)); 639extern void XFreeGC P_ ((Display *, GC));
644extern void XSetForeground P_ ((Display *, GC, unsigned long)); 640extern void XSetForeground P_ ((Display *, GC, unsigned long));
645extern void XSetBackground P_ ((Display *, GC, unsigned long)); 641extern void XSetBackground P_ ((Display *, GC, unsigned long));
646extern void XSetWindowBackground P_ ((Display *, WindowRef, unsigned long));
647extern void XDrawLine P_ ((Display *, Pixmap, GC, int, int, int, int)); 642extern void XDrawLine P_ ((Display *, Pixmap, GC, int, int, int, int));
648extern void mac_clear_area P_ ((struct frame *, int, int, 643extern void mac_clear_area P_ ((struct frame *, int, int,
649 unsigned int, unsigned int)); 644 unsigned int, unsigned int));
650extern void mac_unload_font P_ ((struct mac_display_info *, XFontStruct *)); 645extern void mac_unload_font P_ ((struct mac_display_info *, XFontStruct *));
651extern int mac_font_panel_visible_p P_ ((void));
652extern OSStatus mac_show_hide_font_panel P_ ((void));
653extern OSStatus mac_set_font_info_for_selection P_ ((struct frame *, int, int));
654extern OSStatus install_window_handler P_ ((WindowRef));
655extern void remove_window_handler P_ ((WindowRef));
656extern OSStatus mac_post_mouse_moved_event P_ ((void)); 646extern OSStatus mac_post_mouse_moved_event P_ ((void));
657#if !TARGET_API_MAC_CARBON
658extern void do_apple_menu P_ ((SInt16));
659#endif
660#if USE_CG_DRAWING
661extern void mac_prepare_for_quickdraw P_ ((struct frame *));
662#endif
663extern void mac_get_window_bounds P_ ((struct frame *, Rect *, Rect *));
664extern int mac_quit_char_key_p P_ ((UInt32, UInt32)); 647extern int mac_quit_char_key_p P_ ((UInt32, UInt32));
665#if USE_MAC_TOOLBAR
666extern void update_frame_tool_bar P_ ((FRAME_PTR f));
667extern void free_frame_tool_bar P_ ((FRAME_PTR f));
668#endif
669 648
670#define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 649#define FONT_TYPE_FOR_UNIBYTE(font, ch) 0
671#define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0 650#define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0
@@ -673,6 +652,7 @@ extern void free_frame_tool_bar P_ ((FRAME_PTR f));
673/* Defined in macselect.c */ 652/* Defined in macselect.c */
674 653
675extern void x_clear_frame_selections P_ ((struct frame *)); 654extern void x_clear_frame_selections P_ ((struct frame *));
655EXFUN (Fx_selection_owner_p, 1);
676 656
677/* Defined in macfns.c */ 657/* Defined in macfns.c */
678 658
@@ -687,11 +667,6 @@ extern void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object))
687extern void mac_update_title_bar P_ ((struct frame *, int)); 667extern void mac_update_title_bar P_ ((struct frame *, int));
688extern Lisp_Object x_get_focus_frame P_ ((struct frame *)); 668extern Lisp_Object x_get_focus_frame P_ ((struct frame *));
689 669
690/* Defined in macmenu.c */
691
692extern void x_activate_menubar P_ ((struct frame *));
693extern void free_frame_menubar P_ ((struct frame *));
694
695/* Defined in mac.c. */ 670/* Defined in mac.c. */
696 671
697extern void mac_clear_font_name_table P_ ((void)); 672extern void mac_clear_font_name_table P_ ((void));
@@ -723,5 +698,86 @@ extern Lisp_Object xrm_get_resource P_ ((XrmDatabase, const char *,
723extern XrmDatabase xrm_get_preference_database P_ ((const char *)); 698extern XrmDatabase xrm_get_preference_database P_ ((const char *));
724EXFUN (Fmac_get_preference, 4); 699EXFUN (Fmac_get_preference, 4);
725 700
701/* Defined in mactoolbox.c. */
702
703extern void mac_alert_sound_play P_ ((void));
704extern OSStatus install_application_handler P_ ((void));
705extern void mac_get_window_bounds P_ ((struct frame *, Rect *, Rect *));
706extern Rect *mac_get_frame_bounds P_ ((struct frame *, Rect *));
707extern void mac_get_frame_mouse P_ ((struct frame *, Point *));
708extern void mac_convert_frame_point_to_global P_ ((struct frame *, int *,
709 int *));
710#if TARGET_API_MAC_CARBON
711extern void mac_update_proxy_icon P_ ((struct frame *));
712#endif
713extern void mac_set_frame_window_background P_ ((struct frame *,
714 unsigned long));
715extern void mac_update_begin P_ ((struct frame *));
716extern void mac_update_end P_ ((struct frame *));
717extern void mac_frame_up_to_date P_ ((struct frame *));
718extern void x_flush P_ ((struct frame *));
719extern void mac_create_frame_window P_ ((struct frame *, int));
720extern void mac_dispose_frame_window P_ ((struct frame *));
721#if USE_CG_DRAWING
722extern CGContextRef mac_begin_cg_clip P_ ((struct frame *, GC));
723extern void mac_end_cg_clip P_ ((struct frame *));
724#endif
725extern void mac_begin_clip P_ ((struct frame *, GC));
726extern void mac_end_clip P_ ((struct frame *, GC));
727extern void mac_create_scroll_bar P_ ((struct scroll_bar *, const Rect *,
728 Boolean));
729extern void mac_dispose_scroll_bar P_ ((struct scroll_bar *));
730extern void mac_set_scroll_bar_bounds P_ ((struct scroll_bar *, const Rect *));
731extern void mac_redraw_scroll_bar P_ ((struct scroll_bar *));
732#ifdef USE_TOOLKIT_SCROLL_BARS
733extern void x_set_toolkit_scroll_bar_thumb P_ ((struct scroll_bar *,
734 int, int, int));
735#else
736extern void x_scroll_bar_set_handle P_ ((scroll_bar *, int, int, int));
737#endif
738#if USE_MAC_FONT_PANEL
739extern int mac_font_panel_visible_p P_ ((void));
740extern OSStatus mac_show_hide_font_panel P_ ((void));
741extern OSStatus mac_set_font_info_for_selection P_ ((struct frame *, int, int));
742#endif
743#ifdef MAC_OSX
744extern Boolean mac_run_loop_run_once P_ ((EventTimeout));
745#endif
746#if USE_MAC_TOOLBAR
747extern void update_frame_tool_bar P_ ((FRAME_PTR f));
748extern void free_frame_tool_bar P_ ((FRAME_PTR f));
749#endif
750#if TARGET_API_MAC_CARBON
751extern void mac_show_hourglass P_ ((struct frame *));
752extern void mac_hide_hourglass P_ ((struct frame *));
753extern void mac_reposition_hourglass P_ ((struct frame *));
754extern Lisp_Object mac_file_dialog P_ ((Lisp_Object, Lisp_Object, Lisp_Object,
755 Lisp_Object, Lisp_Object));
756#endif
757extern void x_activate_menubar P_ ((struct frame *));
758extern void free_frame_menubar P_ ((struct frame *));
759extern void mac_fill_menubar P_ ((widget_value *, int));
760extern void create_and_show_popup_menu P_ ((FRAME_PTR, widget_value *,
761 int, int, int));
762#if TARGET_API_MAC_CARBON
763extern void create_and_show_dialog P_ ((FRAME_PTR, widget_value *));
764#else
765extern int mac_dialog P_ ((widget_value *));
766#endif
767extern OSStatus mac_get_selection_from_symbol P_ ((Lisp_Object, int,
768 Selection *));
769extern int mac_valid_selection_target_p P_ ((Lisp_Object));
770extern OSStatus mac_clear_selection P_ ((Selection *));
771extern Lisp_Object mac_get_selection_ownership_info P_ ((Selection));
772extern int mac_valid_selection_value_p P_ ((Lisp_Object, Lisp_Object));
773extern OSStatus mac_put_selection_value P_ ((Selection, Lisp_Object,
774 Lisp_Object));
775extern int mac_selection_has_target_p P_ ((Selection, Lisp_Object));
776extern Lisp_Object mac_get_selection_value P_ ((Selection, Lisp_Object));
777extern Lisp_Object mac_get_selection_target_list P_ ((Selection));
778#if TARGET_API_MAC_CARBON
779extern Lisp_Object mac_dnd_default_known_types P_ ((void));
780#endif
781
726/* arch-tag: 6b4ca125-5bef-476d-8ee8-31ed808b7e79 782/* arch-tag: 6b4ca125-5bef-476d-8ee8-31ed808b7e79
727 (do not change this comment) */ 783 (do not change this comment) */