Mercurial > emacs
comparison src/macgui.h @ 80389:f89745e778b8
Replace WindowPtr with WindowRef.
(USE_MAC_TOOLBAR): New define.
(USE_CG_DRAWING): Don't require USE_ATSUI.
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
---|---|
date | Sat, 29 Mar 2008 00:46:11 +0000 |
parents | fc2bcd2a8aad |
children | 6d01fa145e93 |
comparison
equal
deleted
inserted
replaced
80388:2ae7357bc8f4 | 80389:f89745e778b8 |
---|---|
69 #include <Carbon.h> | 69 #include <Carbon.h> |
70 #endif /* not MAC_OSX */ | 70 #endif /* not MAC_OSX */ |
71 #undef Z | 71 #undef Z |
72 #define Z (current_buffer->text->z) | 72 #define Z (current_buffer->text->z) |
73 #else /* not HAVE_CARBON */ | 73 #else /* not HAVE_CARBON */ |
74 #include <QuickDraw.h> /* for WindowPtr */ | 74 #include <QuickDraw.h> /* for WindowRef */ |
75 #include <QDOffscreen.h> /* for GWorldPtr */ | 75 #include <QDOffscreen.h> /* for GWorldPtr */ |
76 #include <Appearance.h> /* for ThemeCursor */ | 76 #include <Appearance.h> /* for ThemeCursor */ |
77 #include <Windows.h> | 77 #include <Windows.h> |
78 #include <Controls.h> | 78 #include <Controls.h> |
79 #include <Gestalt.h> | 79 #include <Gestalt.h> |
96 #endif | 96 #endif |
97 | 97 |
98 /* Whether to use Quartz 2D routines for drawing operations other than | 98 /* Whether to use Quartz 2D routines for drawing operations other than |
99 texts. */ | 99 texts. */ |
100 #ifndef USE_CG_DRAWING | 100 #ifndef USE_CG_DRAWING |
101 #if USE_ATSUI && MAC_OS_X_VERSION_MAX_ALLOWED >= 1020 | 101 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1020 |
102 #define USE_CG_DRAWING 1 | 102 #define USE_CG_DRAWING 1 |
103 #endif | 103 #endif |
104 #endif | 104 #endif |
105 | 105 |
106 /* Whether to use the standard Font Panel floating dialog. */ | 106 /* Whether to use the standard Font Panel floating dialog. */ |
115 #if TARGET_API_MAC_CARBON | 115 #if TARGET_API_MAC_CARBON |
116 #define USE_MAC_TSM 1 | 116 #define USE_MAC_TSM 1 |
117 #endif | 117 #endif |
118 #endif | 118 #endif |
119 | 119 |
120 typedef WindowPtr Window; | 120 /* Whether to use HIToolbar. */ |
121 #ifndef USE_MAC_TOOLBAR | |
122 #if USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 && MAC_OS_X_VERSION_MIN_REQUIRED != 1020 | |
123 #define USE_MAC_TOOLBAR 1 | |
124 #endif | |
125 #endif | |
126 | |
127 typedef WindowRef Window; | |
121 typedef GWorldPtr Pixmap; | 128 typedef GWorldPtr Pixmap; |
122 | 129 |
123 #define Cursor ThemeCursor | 130 #define Cursor ThemeCursor |
124 #define No_Cursor (-1) | 131 #define No_Cursor (-1) |
125 | 132 |