comparison src/macgui.h @ 69432:c01e176bfcad

[USE_ATSUI && MAC_OSX]: Define USE_CG_TEXT_DRAWING to 1.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Sun, 12 Mar 2006 08:20:24 +0000
parents 3be1a9b7b2e7
children d7f3a82edf0a a802c5505156
comparison
equal deleted inserted replaced
69431:2dc590b0aeb9 69432:c01e176bfcad
77 #include <Windows.h> 77 #include <Windows.h>
78 #include <Controls.h> 78 #include <Controls.h>
79 #include <Gestalt.h> 79 #include <Gestalt.h>
80 #endif /* not HAVE_CARBON */ 80 #endif /* not HAVE_CARBON */
81 81
82 typedef WindowPtr Window;
83 typedef GWorldPtr Pixmap;
84
85 #define Cursor ThemeCursor
86 #define No_Cursor (-1)
87
88 #define FACE_DEFAULT (~0)
89
90 #if !TARGET_API_MAC_CARBON
91 #define GetPixDepth(pmh) ((*(pmh))->pixelSize)
92 #endif
93
94
95 #ifndef USE_CG_TEXT_DRAWING 82 #ifndef USE_CG_TEXT_DRAWING
96 #if USE_ATSUI && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 83 #if USE_ATSUI && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030
97 #define USE_CG_TEXT_DRAWING 1 84 #define USE_CG_TEXT_DRAWING 1
98 #endif 85 #endif
99 #endif 86 #endif
87
88 #ifndef USE_CG_DRAWING
89 #if USE_ATSUI && defined (MAC_OSX)
90 #define USE_CG_DRAWING 1
91 #endif
92 #endif
93
94 typedef WindowPtr Window;
95 typedef GWorldPtr Pixmap;
96
97 #define Cursor ThemeCursor
98 #define No_Cursor (-1)
99
100 #define FACE_DEFAULT (~0)
101
102 #if !TARGET_API_MAC_CARBON
103 #define GetPixDepth(pmh) ((*(pmh))->pixelSize)
104 #endif
105
100 106
101 /* Emulate XCharStruct. */ 107 /* Emulate XCharStruct. */
102 typedef struct _XCharStruct 108 typedef struct _XCharStruct
103 { 109 {
104 short lbearing; /* origin to left edge of raster */ 110 short lbearing; /* origin to left edge of raster */