comparison src/macgui.h @ 80546:5eb403dc8e20

(Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 02 May 2008 09:39:12 +0000
parents fbe5484e7555
children a0615a586d39
comparison
equal deleted inserted replaced
80545:d4410031dce7 80546:5eb403dc8e20
150 #define mac_move_window MoveWindow 150 #define mac_move_window MoveWindow
151 #define mac_size_window SizeWindow 151 #define mac_size_window SizeWindow
152 #define mac_get_global_mouse GetGlobalMouse 152 #define mac_get_global_mouse GetGlobalMouse
153 #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) 154 #define mac_rect_make(f, x, y, w, h) CGRectMake (x, y, w, h)
155
156 #if USE_MAC_IMAGE_IO
157 typedef struct _XImage
158 {
159 int width, height; /* size of image */
160 char *data; /* pointer to image data */
161 int bytes_per_line; /* accelarator to next line */
162 int bits_per_pixel; /* bits per pixel (ZPixmap) */
163 } *Pixmap;
164 #else
155 typedef GWorldPtr Pixmap; 165 typedef GWorldPtr Pixmap;
166 #endif
156 167
157 #define Cursor ThemeCursor 168 #define Cursor ThemeCursor
158 #define No_Cursor (-1) 169 #define No_Cursor (-1)
159 170
160 #define FACE_DEFAULT (~0) 171 #define FACE_DEFAULT (~0)