aboutsummaryrefslogtreecommitdiffstats
path: root/src/macterm.h
diff options
context:
space:
mode:
authorKaroly Lorentey2006-06-12 07:27:12 +0000
committerKaroly Lorentey2006-06-12 07:27:12 +0000
commit476e9367ec1f440aa23904b7bc482ea4a3b8041c (patch)
tree4f7f5a5e9a6668f908834bb6e216c8fa3727d4b3 /src/macterm.h
parenta13f8f50d4cc544d3bbfa78568e82ce09e68bded (diff)
parent6b519504c3297595101628e823e72c91e562ab45 (diff)
downloademacs-476e9367ec1f440aa23904b7bc482ea4a3b8041c.tar.gz
emacs-476e9367ec1f440aa23904b7bc482ea4a3b8041c.zip
Merged from emacs@sv.gnu.org.
Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-294 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-295 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-296 Update from CVS: admin/FOR-RELEASE: Update refcard section. * emacs@sv.gnu.org/emacs--devo--0--patch-297 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-298 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-299 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-300 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-301 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-302 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-303 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-304 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-103 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-104 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-570
Diffstat (limited to 'src/macterm.h')
-rw-r--r--src/macterm.h53
1 files changed, 51 insertions, 2 deletions
diff --git a/src/macterm.h b/src/macterm.h
index abdce7a799e..fd71e36d28d 100644
--- a/src/macterm.h
+++ b/src/macterm.h
@@ -536,6 +536,53 @@ struct scroll_bar {
536#define HOURGLASS_WIDTH 16 536#define HOURGLASS_WIDTH 16
537#define HOURGLASS_HEIGHT 16 537#define HOURGLASS_HEIGHT 16
538 538
539/* Some constants that are used locally. */
540/* Apple event descriptor types */
541enum {
542 TYPE_FILE_NAME = 'fNam'
543};
544
545/* Keywords for Apple event attributes */
546enum {
547 KEY_EMACS_SUSPENSION_ID_ATTR = 'esId' /* typeUInt32 */
548};
549
550/* Carbon event parameter names. */
551enum {
552 EVENT_PARAM_TEXT_INPUT_SEQUENCE_NUMBER = 'tsSn' /* typeUInt32 */
553};
554
555/* Some constants that are not defined in older versions. */
556#if MAC_OS_X_VERSION_MAX_ALLOWED < 1030
557/* Keywords for Apple event attributes */
558enum {
559 keyReplyRequestedAttr = 'repq'
560};
561#endif
562
563#if MAC_OS_X_VERSION_MAX_ALLOWED < 1040
564/* Gestalt selectors */
565enum {
566 gestaltSystemVersionMajor = 'sys1',
567 gestaltSystemVersionMinor = 'sys2',
568 gestaltSystemVersionBugFix = 'sys3'
569};
570#endif
571
572#ifdef MAC_OSX
573#if MAC_OS_X_VERSION_MAX_ALLOWED < 1020
574/* Apple event descriptor types */
575enum {
576 typeUTF8Text = 'utf8'
577};
578
579/* Carbon event parameter names */
580enum {
581 kEventParamWindowMouseLocation = 'wmou'
582};
583#endif
584#endif
585
539struct frame; 586struct frame;
540struct face; 587struct face;
541struct image; 588struct image;
@@ -581,6 +628,8 @@ extern void mac_draw_line_to_pixmap P_ ((Display *, Pixmap, GC, int, int,
581extern void mac_clear_area P_ ((struct frame *, int, int, 628extern void mac_clear_area P_ ((struct frame *, int, int,
582 unsigned int, unsigned int)); 629 unsigned int, unsigned int));
583extern void mac_unload_font P_ ((struct mac_display_info *, XFontStruct *)); 630extern void mac_unload_font P_ ((struct mac_display_info *, XFontStruct *));
631extern int mac_font_panel_visible_p P_ ((void));
632extern OSStatus mac_show_hide_font_panel P_ ((void));
584extern OSStatus mac_set_font_info_for_selection P_ ((struct frame *, int, int)); 633extern OSStatus mac_set_font_info_for_selection P_ ((struct frame *, int, int));
585extern OSErr install_window_handler P_ ((WindowPtr)); 634extern OSErr install_window_handler P_ ((WindowPtr));
586extern void remove_window_handler P_ ((WindowPtr)); 635extern void remove_window_handler P_ ((WindowPtr));
@@ -593,8 +642,6 @@ extern void mac_prepare_for_quickdraw P_ ((struct frame *));
593#define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 642#define FONT_TYPE_FOR_UNIBYTE(font, ch) 0
594#define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0 643#define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0
595 644
596#define TYPE_FILE_NAME 'fNam'
597
598/* Defined in macselect.c */ 645/* Defined in macselect.c */
599 646
600extern void x_clear_frame_selections P_ ((struct frame *)); 647extern void x_clear_frame_selections P_ ((struct frame *));
@@ -612,6 +659,7 @@ extern int x_char_height P_ ((struct frame *));
612extern void x_sync P_ ((struct frame *)); 659extern void x_sync P_ ((struct frame *));
613extern void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object)); 660extern void x_set_tool_bar_lines P_ ((struct frame *, Lisp_Object, Lisp_Object));
614extern void mac_update_title_bar P_ ((struct frame *, int)); 661extern void mac_update_title_bar P_ ((struct frame *, int));
662extern Lisp_Object x_get_focus_frame P_ ((struct frame *));
615 663
616/* Defined in macmenu.c */ 664/* Defined in macmenu.c */
617 665
@@ -622,6 +670,7 @@ extern void free_frame_menubar P_ ((struct frame *));
622 670
623extern void mac_clear_font_name_table P_ ((void)); 671extern void mac_clear_font_name_table P_ ((void));
624extern Lisp_Object mac_aedesc_to_lisp P_ ((const AEDesc *)); 672extern Lisp_Object mac_aedesc_to_lisp P_ ((const AEDesc *));
673extern OSErr mac_ae_put_lisp P_ ((AEDescList *, UInt32, Lisp_Object));
625#if TARGET_API_MAC_CARBON 674#if TARGET_API_MAC_CARBON
626extern OSErr create_apple_event_from_event_ref P_ ((EventRef, UInt32, 675extern OSErr create_apple_event_from_event_ref P_ ((EventRef, UInt32,
627 EventParamName *, 676 EventParamName *,