comparison src/macterm.h @ 81243:a45c50c85284

(mac_get_window_bounds): Move extern from macfns.c. (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Thu, 07 Jun 2007 08:45:14 +0000
parents d7bcc159ccc6
children ddf18bd8d3c1 cc587bfd19ca e9f94688a064
comparison
equal deleted inserted replaced
81242:95935a0c1560 81243:a45c50c85284
366 #define FRAME_MAC_DISPLAY(f) (0) 366 #define FRAME_MAC_DISPLAY(f) (0)
367 #define FRAME_X_DISPLAY(f) (0) 367 #define FRAME_X_DISPLAY(f) (0)
368 368
369 /* This is the 'font_info *' which frame F has. */ 369 /* This is the 'font_info *' which frame F has. */
370 #define FRAME_MAC_FONT_TABLE(f) (FRAME_MAC_DISPLAY_INFO (f)->font_table) 370 #define FRAME_MAC_FONT_TABLE(f) (FRAME_MAC_DISPLAY_INFO (f)->font_table)
371
372 /* The difference in pixels between the top left corner of the
373 Emacs window (including possible window manager decorations)
374 and FRAME_MAC_WINDOW (f). */
375 #define FRAME_OUTER_TO_INNER_DIFF_X(f) ((f)->x_pixels_diff)
376 #define FRAME_OUTER_TO_INNER_DIFF_Y(f) ((f)->y_pixels_diff)
371 377
372 /* Value is the smallest width of any character in any font on frame F. */ 378 /* Value is the smallest width of any character in any font on frame F. */
373 379
374 #define FRAME_SMALLEST_CHAR_WIDTH(F) \ 380 #define FRAME_SMALLEST_CHAR_WIDTH(F) \
375 FRAME_MAC_DISPLAY_INFO(F)->smallest_char_width 381 FRAME_MAC_DISPLAY_INFO(F)->smallest_char_width
641 extern void do_apple_menu P_ ((SInt16)); 647 extern void do_apple_menu P_ ((SInt16));
642 #endif 648 #endif
643 #if USE_CG_DRAWING 649 #if USE_CG_DRAWING
644 extern void mac_prepare_for_quickdraw P_ ((struct frame *)); 650 extern void mac_prepare_for_quickdraw P_ ((struct frame *));
645 #endif 651 #endif
652 extern void mac_get_window_bounds P_ ((struct frame *, Rect *, Rect *));
646 extern int mac_quit_char_key_p P_ ((UInt32, UInt32)); 653 extern int mac_quit_char_key_p P_ ((UInt32, UInt32));
647 654
648 #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 655 #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0
649 #define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0 656 #define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0
650 657