Mercurial > emacs
diff src/macgui.h @ 55851:f1d6a507dcfd
Support Tooltips with the Carbon emacs port.
Some code cleanup using helper macros.
| author | Steven Tamm <steventamm@mac.com> |
|---|---|
| date | Sun, 30 May 2004 00:18:41 +0000 |
| parents | 6c8849d06ab3 |
| children | 0867872551d9 4c90ffeb71c5 |
line wrap: on
line diff
--- a/src/macgui.h Sun May 30 00:09:37 2004 +0000 +++ b/src/macgui.h Sun May 30 00:18:41 2004 +0000 @@ -57,16 +57,27 @@ #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)
