diff options
| author | Steven Tamm | 2004-05-30 00:18:41 +0000 |
|---|---|---|
| committer | Steven Tamm | 2004-05-30 00:18:41 +0000 |
| commit | 50bf76732ba3cd84d56185685e58604dd139ba94 (patch) | |
| tree | 1f86ade4b3d5ac94add211e8ffbb8690941033fc /src/macgui.h | |
| parent | f2f82fa491294e51620ef6eddfd03912e28e2936 (diff) | |
| download | emacs-50bf76732ba3cd84d56185685e58604dd139ba94.tar.gz 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.h | 15 |
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; | |||
| 57 | #undef init_process | 57 | #undef init_process |
| 58 | #define init_process emacs_init_process | 58 | #define init_process emacs_init_process |
| 59 | #undef INFINITY | 59 | #undef INFINITY |
| 60 | typedef struct OpaqueWindowPtr* Window; | ||
| 61 | #else | 60 | #else |
| 62 | #include <QuickDraw.h> /* for WindowPtr */ | 61 | #include <QuickDraw.h> /* for WindowPtr */ |
| 63 | #include <QDOffscreen.h> /* for GWorldPtr */ | 62 | #include <QDOffscreen.h> /* for GWorldPtr */ |
| 64 | #include <Controls.h> /* for ControlHandle in xdisp.c */ | 63 | #include <Controls.h> /* for ControlHandle in xdisp.c */ |
| 65 | typedef WindowPtr Window; | 64 | #include <Gestalt.h> |
| 66 | #endif | 65 | #endif |
| 67 | 66 | ||
| 68 | typedef GWorldPtr Pixmap; | 67 | typedef GWorldPtr Pixmap; |
| 69 | 68 | ||
| 69 | #if TARGET_API_MAC_CARBON | ||
| 70 | typedef struct OpaqueWindowPtr *Window; | ||
| 71 | #define Cursor ThemeCursor | ||
| 72 | #define No_Cursor (-1) | ||
| 73 | #else | ||
| 74 | typedef WindowPtr Window; | ||
| 75 | #define SetPortWindowPort(w) SetPort(w) | ||
| 76 | #define Cursor CursHandle | ||
| 77 | #define No_Cursor (0) | ||
| 78 | extern CursPtr arrow_cursor; | ||
| 79 | #endif | ||
| 80 | |||
| 70 | #define FACE_DEFAULT (~0) | 81 | #define FACE_DEFAULT (~0) |
| 71 | 82 | ||
| 72 | 83 | ||