summaryrefslogtreecommitdiff
path: root/src/macgui.h
diff options
context:
space:
mode:
authorSteven Tamm <steventamm@mac.com>2004-05-30 00:18:41 +0000
committerSteven Tamm <steventamm@mac.com>2004-05-30 00:18:41 +0000
commit50bf76732ba3cd84d56185685e58604dd139ba94 (patch)
tree1f86ade4b3d5ac94add211e8ffbb8690941033fc /src/macgui.h
parentf2f82fa491294e51620ef6eddfd03912e28e2936 (diff)
downloademacs-50bf76732ba3cd84d56185685e58604dd139ba94.tar.gz
emacs-50bf76732ba3cd84d56185685e58604dd139ba94.tar.bz2
emacs-50bf76732ba3cd84d56185685e58604dd139ba94.zip
Support Tooltips with the Carbon emacs port.
Some code cleanup using helper macros.
Diffstat (limited to 'src/macgui.h')
-rw-r--r--src/macgui.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/macgui.h b/src/macgui.h
index 2bb346e9d30..58081df52b4 100644
--- a/src/macgui.h
+++ b/src/macgui.h
@@ -57,16 +57,27 @@ typedef unsigned long Time;
#undef init_process
#define init_process emacs_init_process
#undef INFINITY
-typedef struct OpaqueWindowPtr* Window;
#else
#include <QuickDraw.h> /* for WindowPtr */
#include <QDOffscreen.h> /* for GWorldPtr */
#include <Controls.h> /* for ControlHandle in xdisp.c */
-typedef WindowPtr Window;
+#include <Gestalt.h>
#endif
typedef GWorldPtr Pixmap;
+#if TARGET_API_MAC_CARBON
+typedef struct OpaqueWindowPtr *Window;
+#define Cursor ThemeCursor
+#define No_Cursor (-1)
+#else
+typedef WindowPtr Window;
+#define SetPortWindowPort(w) SetPort(w)
+#define Cursor CursHandle
+#define No_Cursor (0)
+extern CursPtr arrow_cursor;
+#endif
+
#define FACE_DEFAULT (~0)