Mercurial > emacs
comparison src/macgui.h @ 80514:fbe5484e7555
(CGFloat) [!CGFLOAT_DEFINED]: New typedef.
(mac_rect_make): New macro.
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
---|---|
date | Sat, 19 Apr 2008 01:24:57 +0000 |
parents | 6d01fa145e93 |
children | 5eb403dc8e20 ca9efc5939fc |
comparison
equal
deleted
inserted
replaced
80513:e58dfb854c06 | 80514:fbe5484e7555 |
---|---|
122 #if USE_CG_DRAWING && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 && MAC_OS_X_VERSION_MIN_REQUIRED != 1020 | 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 | 123 #define USE_MAC_TOOLBAR 1 |
124 #endif | 124 #endif |
125 #endif | 125 #endif |
126 | 126 |
127 #ifndef CGFLOAT_DEFINED | |
128 typedef float CGFloat; | |
129 #endif | |
130 | |
127 typedef WindowRef Window; | 131 typedef WindowRef Window; |
128 #if TARGET_API_MAC_CARBON | 132 #if TARGET_API_MAC_CARBON |
129 typedef ScrapRef Selection; | 133 typedef ScrapRef Selection; |
130 #else | 134 #else |
131 typedef int Selection; | 135 typedef int Selection; |
145 #define mac_move_window_structure MoveWindowStructure | 149 #define mac_move_window_structure MoveWindowStructure |
146 #define mac_move_window MoveWindow | 150 #define mac_move_window MoveWindow |
147 #define mac_size_window SizeWindow | 151 #define mac_size_window SizeWindow |
148 #define mac_get_global_mouse GetGlobalMouse | 152 #define mac_get_global_mouse GetGlobalMouse |
149 #define mac_is_window_toolbar_visible IsWindowToolbarVisible | 153 #define mac_is_window_toolbar_visible IsWindowToolbarVisible |
154 #define mac_rect_make(f, x, y, w, h) CGRectMake (x, y, w, h) | |
150 typedef GWorldPtr Pixmap; | 155 typedef GWorldPtr Pixmap; |
151 | 156 |
152 #define Cursor ThemeCursor | 157 #define Cursor ThemeCursor |
153 #define No_Cursor (-1) | 158 #define No_Cursor (-1) |
154 | 159 |