diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2007-06-07 08:45:26 +0000 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2007-06-07 08:45:26 +0000 |
commit | aa8280d3f3b60b05a6637b59e33c62c32a6a78c3 (patch) | |
tree | abf85ff935e3cf8619ad7cf29c93934b5615536b /src/macterm.h | |
parent | 7adf314352a9fcd258183153d9068f73ef1d048c (diff) | |
download | emacs-aa8280d3f3b60b05a6637b59e33c62c32a6a78c3.tar.gz |
(mac_get_window_bounds): Move extern from macfns.c.
(FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
Diffstat (limited to 'src/macterm.h')
-rw-r--r-- | src/macterm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/macterm.h b/src/macterm.h index 789089b0bc9..7984ff2b970 100644 --- a/src/macterm.h +++ b/src/macterm.h @@ -369,6 +369,12 @@ typedef struct mac_output mac_output; /* This is the 'font_info *' which frame F has. */ #define FRAME_MAC_FONT_TABLE(f) (FRAME_MAC_DISPLAY_INFO (f)->font_table) +/* The difference in pixels between the top left corner of the + Emacs window (including possible window manager decorations) + and FRAME_MAC_WINDOW (f). */ +#define FRAME_OUTER_TO_INNER_DIFF_X(f) ((f)->x_pixels_diff) +#define FRAME_OUTER_TO_INNER_DIFF_Y(f) ((f)->y_pixels_diff) + /* Value is the smallest width of any character in any font on frame F. */ #define FRAME_SMALLEST_CHAR_WIDTH(F) \ @@ -643,6 +649,7 @@ extern void do_apple_menu P_ ((SInt16)); #if USE_CG_DRAWING extern void mac_prepare_for_quickdraw P_ ((struct frame *)); #endif +extern void mac_get_window_bounds P_ ((struct frame *, Rect *, Rect *)); extern int mac_quit_char_key_p P_ ((UInt32, UInt32)); #define FONT_TYPE_FOR_UNIBYTE(font, ch) 0 |