diff options
Diffstat (limited to 'src/macterm.h')
| -rw-r--r-- | src/macterm.h | 116 |
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 *, | |||
| 624 | extern void x_set_window_size P_ ((struct frame *, int, int, int)); | 618 | extern void x_set_window_size P_ ((struct frame *, int, int, int)); |
| 625 | extern void x_set_mouse_position P_ ((struct frame *, int, int)); | 619 | extern void x_set_mouse_position P_ ((struct frame *, int, int)); |
| 626 | extern void x_set_mouse_pixel_position P_ ((struct frame *, int, int)); | 620 | extern void x_set_mouse_pixel_position P_ ((struct frame *, int, int)); |
| 621 | extern void x_raise_frame P_ ((struct frame *)); | ||
| 622 | extern void x_lower_frame P_ ((struct frame *)); | ||
| 627 | extern void x_make_frame_visible P_ ((struct frame *)); | 623 | extern void x_make_frame_visible P_ ((struct frame *)); |
| 628 | extern void x_make_frame_invisible P_ ((struct frame *)); | 624 | extern void x_make_frame_invisible P_ ((struct frame *)); |
| 629 | extern void x_iconify_frame P_ ((struct frame *)); | 625 | extern void x_iconify_frame P_ ((struct frame *)); |
| @@ -643,29 +639,12 @@ extern GC XCreateGC P_ ((Display *, void *, unsigned long, XGCValues *)); | |||
| 643 | extern void XFreeGC P_ ((Display *, GC)); | 639 | extern void XFreeGC P_ ((Display *, GC)); |
| 644 | extern void XSetForeground P_ ((Display *, GC, unsigned long)); | 640 | extern void XSetForeground P_ ((Display *, GC, unsigned long)); |
| 645 | extern void XSetBackground P_ ((Display *, GC, unsigned long)); | 641 | extern void XSetBackground P_ ((Display *, GC, unsigned long)); |
| 646 | extern void XSetWindowBackground P_ ((Display *, WindowRef, unsigned long)); | ||
| 647 | extern void XDrawLine P_ ((Display *, Pixmap, GC, int, int, int, int)); | 642 | extern void XDrawLine P_ ((Display *, Pixmap, GC, int, int, int, int)); |
| 648 | extern void mac_clear_area P_ ((struct frame *, int, int, | 643 | extern void mac_clear_area P_ ((struct frame *, int, int, |
| 649 | unsigned int, unsigned int)); | 644 | unsigned int, unsigned int)); |
| 650 | extern void mac_unload_font P_ ((struct mac_display_info *, XFontStruct *)); | 645 | extern void mac_unload_font P_ ((struct mac_display_info *, XFontStruct *)); |
| 651 | extern int mac_font_panel_visible_p P_ ((void)); | ||
| 652 | extern OSStatus mac_show_hide_font_panel P_ ((void)); | ||
| 653 | extern OSStatus mac_set_font_info_for_selection P_ ((struct frame *, int, int)); | ||
| 654 | extern OSStatus install_window_handler P_ ((WindowRef)); | ||
| 655 | extern void remove_window_handler P_ ((WindowRef)); | ||
| 656 | extern OSStatus mac_post_mouse_moved_event P_ ((void)); | 646 | extern OSStatus mac_post_mouse_moved_event P_ ((void)); |
| 657 | #if !TARGET_API_MAC_CARBON | ||
| 658 | extern void do_apple_menu P_ ((SInt16)); | ||
| 659 | #endif | ||
| 660 | #if USE_CG_DRAWING | ||
| 661 | extern void mac_prepare_for_quickdraw P_ ((struct frame *)); | ||
| 662 | #endif | ||
| 663 | extern void mac_get_window_bounds P_ ((struct frame *, Rect *, Rect *)); | ||
| 664 | extern int mac_quit_char_key_p P_ ((UInt32, UInt32)); | 647 | extern int mac_quit_char_key_p P_ ((UInt32, UInt32)); |
| 665 | #if USE_MAC_TOOLBAR | ||
| 666 | extern void update_frame_tool_bar P_ ((FRAME_PTR f)); | ||
| 667 | extern 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 | ||
| 675 | extern void x_clear_frame_selections P_ ((struct frame *)); | 654 | extern void x_clear_frame_selections P_ ((struct frame *)); |
| 655 | EXFUN (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)) | |||
| 687 | extern void mac_update_title_bar P_ ((struct frame *, int)); | 667 | extern void mac_update_title_bar P_ ((struct frame *, int)); |
| 688 | extern Lisp_Object x_get_focus_frame P_ ((struct frame *)); | 668 | extern Lisp_Object x_get_focus_frame P_ ((struct frame *)); |
| 689 | 669 | ||
| 690 | /* Defined in macmenu.c */ | ||
| 691 | |||
| 692 | extern void x_activate_menubar P_ ((struct frame *)); | ||
| 693 | extern void free_frame_menubar P_ ((struct frame *)); | ||
| 694 | |||
| 695 | /* Defined in mac.c. */ | 670 | /* Defined in mac.c. */ |
| 696 | 671 | ||
| 697 | extern void mac_clear_font_name_table P_ ((void)); | 672 | extern void mac_clear_font_name_table P_ ((void)); |
| @@ -723,5 +698,86 @@ extern Lisp_Object xrm_get_resource P_ ((XrmDatabase, const char *, | |||
| 723 | extern XrmDatabase xrm_get_preference_database P_ ((const char *)); | 698 | extern XrmDatabase xrm_get_preference_database P_ ((const char *)); |
| 724 | EXFUN (Fmac_get_preference, 4); | 699 | EXFUN (Fmac_get_preference, 4); |
| 725 | 700 | ||
| 701 | /* Defined in mactoolbox.c. */ | ||
| 702 | |||
| 703 | extern void mac_alert_sound_play P_ ((void)); | ||
| 704 | extern OSStatus install_application_handler P_ ((void)); | ||
| 705 | extern void mac_get_window_bounds P_ ((struct frame *, Rect *, Rect *)); | ||
| 706 | extern Rect *mac_get_frame_bounds P_ ((struct frame *, Rect *)); | ||
| 707 | extern void mac_get_frame_mouse P_ ((struct frame *, Point *)); | ||
| 708 | extern void mac_convert_frame_point_to_global P_ ((struct frame *, int *, | ||
| 709 | int *)); | ||
| 710 | #if TARGET_API_MAC_CARBON | ||
| 711 | extern void mac_update_proxy_icon P_ ((struct frame *)); | ||
| 712 | #endif | ||
| 713 | extern void mac_set_frame_window_background P_ ((struct frame *, | ||
| 714 | unsigned long)); | ||
| 715 | extern void mac_update_begin P_ ((struct frame *)); | ||
| 716 | extern void mac_update_end P_ ((struct frame *)); | ||
| 717 | extern void mac_frame_up_to_date P_ ((struct frame *)); | ||
| 718 | extern void x_flush P_ ((struct frame *)); | ||
| 719 | extern void mac_create_frame_window P_ ((struct frame *, int)); | ||
| 720 | extern void mac_dispose_frame_window P_ ((struct frame *)); | ||
| 721 | #if USE_CG_DRAWING | ||
| 722 | extern CGContextRef mac_begin_cg_clip P_ ((struct frame *, GC)); | ||
| 723 | extern void mac_end_cg_clip P_ ((struct frame *)); | ||
| 724 | #endif | ||
| 725 | extern void mac_begin_clip P_ ((struct frame *, GC)); | ||
| 726 | extern void mac_end_clip P_ ((struct frame *, GC)); | ||
| 727 | extern void mac_create_scroll_bar P_ ((struct scroll_bar *, const Rect *, | ||
| 728 | Boolean)); | ||
| 729 | extern void mac_dispose_scroll_bar P_ ((struct scroll_bar *)); | ||
| 730 | extern void mac_set_scroll_bar_bounds P_ ((struct scroll_bar *, const Rect *)); | ||
| 731 | extern void mac_redraw_scroll_bar P_ ((struct scroll_bar *)); | ||
| 732 | #ifdef USE_TOOLKIT_SCROLL_BARS | ||
| 733 | extern void x_set_toolkit_scroll_bar_thumb P_ ((struct scroll_bar *, | ||
| 734 | int, int, int)); | ||
| 735 | #else | ||
| 736 | extern void x_scroll_bar_set_handle P_ ((scroll_bar *, int, int, int)); | ||
| 737 | #endif | ||
| 738 | #if USE_MAC_FONT_PANEL | ||
| 739 | extern int mac_font_panel_visible_p P_ ((void)); | ||
| 740 | extern OSStatus mac_show_hide_font_panel P_ ((void)); | ||
| 741 | extern OSStatus mac_set_font_info_for_selection P_ ((struct frame *, int, int)); | ||
| 742 | #endif | ||
| 743 | #ifdef MAC_OSX | ||
| 744 | extern Boolean mac_run_loop_run_once P_ ((EventTimeout)); | ||
| 745 | #endif | ||
| 746 | #if USE_MAC_TOOLBAR | ||
| 747 | extern void update_frame_tool_bar P_ ((FRAME_PTR f)); | ||
| 748 | extern void free_frame_tool_bar P_ ((FRAME_PTR f)); | ||
| 749 | #endif | ||
| 750 | #if TARGET_API_MAC_CARBON | ||
| 751 | extern void mac_show_hourglass P_ ((struct frame *)); | ||
| 752 | extern void mac_hide_hourglass P_ ((struct frame *)); | ||
| 753 | extern void mac_reposition_hourglass P_ ((struct frame *)); | ||
| 754 | extern Lisp_Object mac_file_dialog P_ ((Lisp_Object, Lisp_Object, Lisp_Object, | ||
| 755 | Lisp_Object, Lisp_Object)); | ||
| 756 | #endif | ||
| 757 | extern void x_activate_menubar P_ ((struct frame *)); | ||
| 758 | extern void free_frame_menubar P_ ((struct frame *)); | ||
| 759 | extern void mac_fill_menubar P_ ((widget_value *, int)); | ||
| 760 | extern void create_and_show_popup_menu P_ ((FRAME_PTR, widget_value *, | ||
| 761 | int, int, int)); | ||
| 762 | #if TARGET_API_MAC_CARBON | ||
| 763 | extern void create_and_show_dialog P_ ((FRAME_PTR, widget_value *)); | ||
| 764 | #else | ||
| 765 | extern int mac_dialog P_ ((widget_value *)); | ||
| 766 | #endif | ||
| 767 | extern OSStatus mac_get_selection_from_symbol P_ ((Lisp_Object, int, | ||
| 768 | Selection *)); | ||
| 769 | extern int mac_valid_selection_target_p P_ ((Lisp_Object)); | ||
| 770 | extern OSStatus mac_clear_selection P_ ((Selection *)); | ||
| 771 | extern Lisp_Object mac_get_selection_ownership_info P_ ((Selection)); | ||
| 772 | extern int mac_valid_selection_value_p P_ ((Lisp_Object, Lisp_Object)); | ||
| 773 | extern OSStatus mac_put_selection_value P_ ((Selection, Lisp_Object, | ||
| 774 | Lisp_Object)); | ||
| 775 | extern int mac_selection_has_target_p P_ ((Selection, Lisp_Object)); | ||
| 776 | extern Lisp_Object mac_get_selection_value P_ ((Selection, Lisp_Object)); | ||
| 777 | extern Lisp_Object mac_get_selection_target_list P_ ((Selection)); | ||
| 778 | #if TARGET_API_MAC_CARBON | ||
| 779 | extern 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) */ |