diff options
Diffstat (limited to 'src/macterm.h')
| -rw-r--r-- | src/macterm.h | 53 |
1 files changed, 51 insertions, 2 deletions
diff --git a/src/macterm.h b/src/macterm.h index 8b45777e546..55bf583c214 100644 --- a/src/macterm.h +++ b/src/macterm.h | |||
| @@ -539,6 +539,53 @@ struct scroll_bar { | |||
| 539 | #define HOURGLASS_WIDTH 16 | 539 | #define HOURGLASS_WIDTH 16 |
| 540 | #define HOURGLASS_HEIGHT 16 | 540 | #define HOURGLASS_HEIGHT 16 |
| 541 | 541 | ||
| 542 | /* Some constants that are used locally. */ | ||
| 543 | /* Apple event descriptor types */ | ||
| 544 | enum { | ||
| 545 | TYPE_FILE_NAME = 'fNam' | ||
| 546 | }; | ||
| 547 | |||
| 548 | /* Keywords for Apple event attributes */ | ||
| 549 | enum { | ||
| 550 | KEY_EMACS_SUSPENSION_ID_ATTR = 'esId' /* typeUInt32 */ | ||
| 551 | }; | ||
| 552 | |||
| 553 | /* Carbon event parameter names. */ | ||
| 554 | enum { | ||
| 555 | EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER = 'tsSn' /* typeUInt32 */ | ||
| 556 | }; | ||
| 557 | |||
| 558 | /* Some constants that are not defined in older versions. */ | ||
| 559 | #if MAC_OS_X_VERSION_MAX_ALLOWED < 1030 | ||
| 560 | /* Keywords for Apple event attributes */ | ||
| 561 | enum { | ||
| 562 | keyReplyRequestedAttr = 'repq' | ||
| 563 | }; | ||
| 564 | #endif | ||
| 565 | |||
| 566 | #if MAC_OS_X_VERSION_MAX_ALLOWED < 1040 | ||
| 567 | /* Gestalt selectors */ | ||
| 568 | enum { | ||
| 569 | gestaltSystemVersionMajor = 'sys1', | ||
| 570 | gestaltSystemVersionMinor = 'sys2', | ||
| 571 | gestaltSystemVersionBugFix = 'sys3' | ||
| 572 | }; | ||
| 573 | #endif | ||
| 574 | |||
| 575 | #ifdef MAC_OSX | ||
| 576 | #if MAC_OS_X_VERSION_MAX_ALLOWED < 1020 | ||
| 577 | /* Apple event descriptor types */ | ||
| 578 | enum { | ||
| 579 | typeUTF8Text = 'utf8' | ||
| 580 | }; | ||
| 581 | |||
| 582 | /* Carbon event parameter names */ | ||
| 583 | enum { | ||
| 584 | kEventParamWindowMouseLocation = 'wmou' | ||
| 585 | }; | ||
| 586 | #endif | ||
| 587 | #endif | ||
| 588 | |||
| 542 | struct frame; | 589 | struct frame; |
| 543 | struct face; | 590 | struct face; |
| 544 | struct image; | 591 | struct image; |
| @@ -584,6 +631,8 @@ extern void mac_draw_line_to_pixmap P_ ((Display *, Pixmap, GC, int, int, | |||
| 584 | extern void mac_clear_area P_ ((struct frame *, int, int, | 631 | extern void mac_clear_area P_ ((struct frame *, int, int, |
| 585 | unsigned int, unsigned int)); | 632 | unsigned int, unsigned int)); |
| 586 | extern void mac_unload_font P_ ((struct mac_display_info *, XFontStruct *)); | 633 | extern void mac_unload_font P_ ((struct mac_display_info *, XFontStruct *)); |
| 634 | extern int mac_font_panel_visible_p P_ ((void)); | ||
| 635 | extern OSStatus mac_show_hide_font_panel P_ ((void)); | ||
| 587 | extern OSStatus mac_set_font_info_for_selection P_ ((struct frame *, int, int)); | 636 | extern OSStatus mac_set_font_info_for_selection P_ ((struct frame *, int, int)); |
| 588 | extern OSErr install_window_handler P_ ((WindowPtr)); | 637 | extern OSErr install_window_handler P_ ((WindowPtr)); |
| 589 | extern void remove_window_handler P_ ((WindowPtr)); | 638 | extern void remove_window_handler P_ ((WindowPtr)); |
| @@ -596,8 +645,6 @@ extern void mac_prepare_for_quickdraw P_ ((struct frame *)); | |||
| 596 | #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 | 645 | #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 |
| 597 | #define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0 | 646 | #define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0 |
| 598 | 647 | ||
| 599 | #define TYPE_FILE_NAME 'fNam' | ||
| 600 | |||
| 601 | /* Defined in macselect.c */ | 648 | /* Defined in macselect.c */ |
| 602 | 649 | ||
| 603 | extern void x_clear_frame_selections P_ ((struct frame *)); | 650 | extern void x_clear_frame_selections P_ ((struct frame *)); |
| @@ -615,6 +662,7 @@ extern int x_char_height P_ ((struct frame *)); | |||
| 615 | extern void x_sync P_ ((struct frame *)); | 662 | extern void x_sync P_ ((struct frame *)); |
| 616 | extern void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); | 663 | extern void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); |
| 617 | extern void mac_update_title_bar P_ ((struct frame *, int)); | 664 | extern void mac_update_title_bar P_ ((struct frame *, int)); |
| 665 | extern Lisp_Object x_get_focus_frame P_ ((struct frame *)); | ||
| 618 | 666 | ||
| 619 | /* Defined in macmenu.c */ | 667 | /* Defined in macmenu.c */ |
| 620 | 668 | ||
| @@ -625,6 +673,7 @@ extern void free_frame_menubar P_ ((struct frame *)); | |||
| 625 | 673 | ||
| 626 | extern void mac_clear_font_name_table P_ ((void)); | 674 | extern void mac_clear_font_name_table P_ ((void)); |
| 627 | extern Lisp_Object mac_aedesc_to_lisp P_ ((const AEDesc *)); | 675 | extern Lisp_Object mac_aedesc_to_lisp P_ ((const AEDesc *)); |
| 676 | extern OSErr mac_ae_put_lisp P_ ((AEDescList *, UInt32, Lisp_Object)); | ||
| 628 | #if TARGET_API_MAC_CARBON | 677 | #if TARGET_API_MAC_CARBON |
| 629 | extern OSErr create_apple_event_from_event_ref P_ ((EventRef, UInt32, | 678 | extern OSErr create_apple_event_from_event_ref P_ ((EventRef, UInt32, |
| 630 | EventParamName *, | 679 | EventParamName *, |