Mercurial > emacs
comparison src/macterm.h @ 83632:cc587bfd19ca
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 781-792)
- Update from CVS
- Merge from gnus--rel--5.10
- Merge from emacs--rel--22
* emacs--rel--22 (patch 33-41)
* gnus--rel--5.10 (patch 226-228)
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-21
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 11 Jun 2007 01:00:07 +0000 |
parents | 5da6a46ddbd6 a45c50c85284 |
children | 9c01792a3ce8 |
comparison
equal
deleted
inserted
replaced
83631:7d63b897231b | 83632:cc587bfd19ca |
---|---|
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 | 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) | |
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 |
376 | 382 |
404 Lisp_Object window; | 410 Lisp_Object window; |
405 | 411 |
406 /* The next and previous in the chain of scroll bars in this frame. */ | 412 /* The next and previous in the chain of scroll bars in this frame. */ |
407 Lisp_Object next, prev; | 413 Lisp_Object next, prev; |
408 | 414 |
409 /* The Mac control handle of this scroll bar. Since this is a | 415 /* The Mac control reference of this scroll bar. Since this is a |
410 pointer value, we store it split into two Lisp integers. */ | 416 pointer value, we store it split into two Lisp integers. */ |
411 Lisp_Object control_handle_low, control_handle_high; | 417 Lisp_Object control_ref_low, control_ref_high; |
412 | 418 |
413 /* The position and size of the scroll bar in pixels, relative to the | 419 /* The position and size of the scroll bar in pixels, relative to the |
414 frame. */ | 420 frame. */ |
415 Lisp_Object top, left, width, height; | 421 Lisp_Object top, left, width, height; |
416 | 422 |
464 XSETINT ((high), (ulong) >> 16)) | 470 XSETINT ((high), (ulong) >> 16)) |
465 | 471 |
466 | 472 |
467 /* Extract the Mac control handle of the scroll bar from a struct | 473 /* Extract the Mac control handle of the scroll bar from a struct |
468 scroll_bar. */ | 474 scroll_bar. */ |
469 #define SCROLL_BAR_CONTROL_HANDLE(ptr) \ | 475 #define SCROLL_BAR_CONTROL_REF(ptr) \ |
470 ((ControlHandle) SCROLL_BAR_PACK ((ptr)->control_handle_low, \ | 476 ((ControlRef) SCROLL_BAR_PACK ((ptr)->control_ref_low, \ |
471 (ptr)->control_handle_high)) | 477 (ptr)->control_ref_high)) |
472 | 478 |
473 /* Store a Mac control handle in a struct scroll_bar. */ | 479 /* Store a Mac control handle in a struct scroll_bar. */ |
474 #define SET_SCROLL_BAR_CONTROL_HANDLE(ptr, handle) \ | 480 #define SET_SCROLL_BAR_CONTROL_REF(ptr, ref) \ |
475 (SCROLL_BAR_UNPACK ((ptr)->control_handle_low, \ | 481 (SCROLL_BAR_UNPACK ((ptr)->control_ref_low, \ |
476 (ptr)->control_handle_high, (unsigned long) (handle))) | 482 (ptr)->control_ref_high, (unsigned long) (ref))) |
477 | 483 |
478 /* Return the inside width of a vertical scroll bar, given the outside | 484 /* Return the inside width of a vertical scroll bar, given the outside |
479 width. */ | 485 width. */ |
480 #define VERTICAL_SCROLL_BAR_INSIDE_WIDTH(f, width) \ | 486 #define VERTICAL_SCROLL_BAR_INSIDE_WIDTH(f, width) \ |
481 ((width) \ | 487 ((width) \ |
612 extern void x_iconify_frame P_ ((struct frame *)); | 618 extern void x_iconify_frame P_ ((struct frame *)); |
613 extern void x_free_frame_resources P_ ((struct frame *)); | 619 extern void x_free_frame_resources P_ ((struct frame *)); |
614 extern void x_destroy_window P_ ((struct frame *)); | 620 extern void x_destroy_window P_ ((struct frame *)); |
615 extern void x_wm_set_size_hint P_ ((struct frame *, long, int)); | 621 extern void x_wm_set_size_hint P_ ((struct frame *, long, int)); |
616 extern void x_delete_display P_ ((struct x_display_info *)); | 622 extern void x_delete_display P_ ((struct x_display_info *)); |
617 extern Pixmap XCreatePixmap P_ ((Display *, WindowPtr, unsigned int, | 623 extern void mac_initialize P_ ((void)); |
624 extern Pixmap XCreatePixmap P_ ((Display *, WindowRef, unsigned int, | |
618 unsigned int, unsigned int)); | 625 unsigned int, unsigned int)); |
619 extern Pixmap XCreatePixmapFromBitmapData P_ ((Display *, WindowPtr, char *, | 626 extern Pixmap XCreatePixmapFromBitmapData P_ ((Display *, WindowRef, char *, |
620 unsigned int, unsigned int, | 627 unsigned int, unsigned int, |
621 unsigned long, unsigned long, | 628 unsigned long, unsigned long, |
622 unsigned int)); | 629 unsigned int)); |
623 extern void XFreePixmap P_ ((Display *, Pixmap)); | 630 extern void XFreePixmap P_ ((Display *, Pixmap)); |
624 extern GC XCreateGC P_ ((Display *, void *, unsigned long, XGCValues *)); | 631 extern GC XCreateGC P_ ((Display *, void *, unsigned long, XGCValues *)); |
625 extern void XFreeGC P_ ((Display *, GC)); | 632 extern void XFreeGC P_ ((Display *, GC)); |
626 extern void XSetForeground P_ ((Display *, GC, unsigned long)); | 633 extern void XSetForeground P_ ((Display *, GC, unsigned long)); |
627 extern void XSetBackground P_ ((Display *, GC, unsigned long)); | 634 extern void XSetBackground P_ ((Display *, GC, unsigned long)); |
628 extern void XSetWindowBackground P_ ((Display *, WindowPtr, unsigned long)); | 635 extern void XSetWindowBackground P_ ((Display *, WindowRef, unsigned long)); |
629 extern void XDrawLine P_ ((Display *, Pixmap, GC, int, int, int, int)); | 636 extern void XDrawLine P_ ((Display *, Pixmap, GC, int, int, int, int)); |
630 extern void mac_clear_area P_ ((struct frame *, int, int, | 637 extern void mac_clear_area P_ ((struct frame *, int, int, |
631 unsigned int, unsigned int)); | 638 unsigned int, unsigned int)); |
632 extern void mac_unload_font P_ ((struct mac_display_info *, XFontStruct *)); | 639 extern void mac_unload_font P_ ((struct mac_display_info *, XFontStruct *)); |
633 extern int mac_font_panel_visible_p P_ ((void)); | 640 extern int mac_font_panel_visible_p P_ ((void)); |
634 extern OSStatus mac_show_hide_font_panel P_ ((void)); | 641 extern OSStatus mac_show_hide_font_panel P_ ((void)); |
635 extern OSStatus mac_set_font_info_for_selection P_ ((struct frame *, int, int)); | 642 extern OSStatus mac_set_font_info_for_selection P_ ((struct frame *, int, int)); |
636 extern OSStatus install_window_handler P_ ((WindowPtr)); | 643 extern OSStatus install_window_handler P_ ((WindowRef)); |
637 extern void remove_window_handler P_ ((WindowPtr)); | 644 extern void remove_window_handler P_ ((WindowRef)); |
638 extern OSStatus mac_post_mouse_moved_event P_ ((void)); | 645 extern OSStatus mac_post_mouse_moved_event P_ ((void)); |
639 #if !TARGET_API_MAC_CARBON | 646 #if !TARGET_API_MAC_CARBON |
640 extern void do_apple_menu P_ ((SInt16)); | 647 extern void do_apple_menu P_ ((SInt16)); |
641 #endif | 648 #endif |
642 #if USE_CG_DRAWING | 649 #if USE_CG_DRAWING |
643 extern void mac_prepare_for_quickdraw P_ ((struct frame *)); | 650 extern void mac_prepare_for_quickdraw P_ ((struct frame *)); |
644 #endif | 651 #endif |
652 extern void mac_get_window_bounds P_ ((struct frame *, Rect *, Rect *)); | |
645 extern int mac_quit_char_key_p P_ ((UInt32, UInt32)); | 653 extern int mac_quit_char_key_p P_ ((UInt32, UInt32)); |
646 | 654 |
647 #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 | 655 #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 |
648 #define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0 | 656 #define FONT_TYPE_FOR_MULTIBYTE(font, ch) 0 |
649 | 657 |