comparison src/macterm.h @ 70875:9db2b3fb6b52

(TYPE_FILE_NAME): Change from macro to enumerator. (KEY_EMACS_SUSPENSION_ID_ATTR): New enumerator. (keyReplyRequestedAttr) [MAC_OS_X_VERSION_MAX_ALLOWED < 1030]: Likewise. (gestaltSystemVersionMajor, gestaltSystemVersionMinor) (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]: Likewise. (typeUTF8Text, kEventParamWindowMouseLocation) [MAC_OSX && MAC_OS_X_VERSION_MAX_ALLOWED < 1020]: Likewise. (x_get_focus_frame, mac_ae_put_lisp): Add externs.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Wed, 24 May 2006 08:09:11 +0000
parents aa63a41cac4d
children 8e0c06f079c2
comparison
equal deleted inserted replaced
70874:acd53b4b2285 70875:9db2b3fb6b52
536 #define MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH (11) 536 #define MAC_AQUA_SMALL_VERTICAL_SCROLL_BAR_WIDTH (11)
537 537
538 /* Size of hourglass controls */ 538 /* Size of hourglass controls */
539 #define HOURGLASS_WIDTH 16 539 #define HOURGLASS_WIDTH 16
540 #define HOURGLASS_HEIGHT 16 540 #define HOURGLASS_HEIGHT 16
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 /* Some constants that are not defined in older versions. */
554 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1030
555 /* Keywords for Apple event attributes */
556 enum {
557 keyReplyRequestedAttr = 'repq'
558 };
559 #endif
560
561 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1040
562 /* Gestalt selectors */
563 enum {
564 gestaltSystemVersionMajor = 'sys1',
565 gestaltSystemVersionMinor = 'sys2',
566 gestaltSystemVersionBugFix = 'sys3'
567 };
568 #endif
569
570 #ifdef MAC_OSX
571 #if MAC_OS_X_VERSION_MAX_ALLOWED < 1020
572 /* Apple event descriptor types */
573 enum {
574 typeUTF8Text = 'utf8'
575 };
576
577 /* Carbon event parameter names */
578 enum {
579 kEventParamWindowMouseLocation = 'wmou'
580 };
581 #endif
582 #endif
541 583
542 struct frame; 584 struct frame;
543 struct face; 585 struct face;
544 struct image; 586 struct image;
545 587
594 #endif 636 #endif
595 637
596 #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 638 #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0
597 #define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0 639 #define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0
598 640
599 #define TYPE_FILE_NAME 'fNam'
600
601 /* Defined in macselect.c */ 641 /* Defined in macselect.c */
602 642
603 extern void x_clear_frame_selections P_ ((struct frame *)); 643 extern void x_clear_frame_selections P_ ((struct frame *));
604 644
605 /* Defined in macfns.c */ 645 /* Defined in macfns.c */
613 extern int x_char_width P_ ((struct frame *)); 653 extern int x_char_width P_ ((struct frame *));
614 extern int x_char_height P_ ((struct frame *)); 654 extern int x_char_height P_ ((struct frame *));
615 extern void x_sync P_ ((struct frame *)); 655 extern void x_sync P_ ((struct frame *));
616 extern void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); 656 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)); 657 extern void mac_update_title_bar P_ ((struct frame *, int));
658 extern Lisp_Object x_get_focus_frame P_ ((struct frame *));
618 659
619 /* Defined in macmenu.c */ 660 /* Defined in macmenu.c */
620 661
621 extern void x_activate_menubar P_ ((struct frame *)); 662 extern void x_activate_menubar P_ ((struct frame *));
622 extern void free_frame_menubar P_ ((struct frame *)); 663 extern void free_frame_menubar P_ ((struct frame *));
623 664
624 /* Defined in mac.c. */ 665 /* Defined in mac.c. */
625 666
626 extern void mac_clear_font_name_table P_ ((void)); 667 extern void mac_clear_font_name_table P_ ((void));
627 extern Lisp_Object mac_aedesc_to_lisp P_ ((const AEDesc *)); 668 extern Lisp_Object mac_aedesc_to_lisp P_ ((const AEDesc *));
669 extern OSErr mac_ae_put_lisp P_ ((AEDescList *, UInt32, Lisp_Object));
628 #if TARGET_API_MAC_CARBON 670 #if TARGET_API_MAC_CARBON
629 extern OSErr create_apple_event_from_event_ref P_ ((EventRef, UInt32, 671 extern OSErr create_apple_event_from_event_ref P_ ((EventRef, UInt32,
630 EventParamName *, 672 EventParamName *,
631 EventParamType *, 673 EventParamType *,
632 AppleEvent *)); 674 AppleEvent *));