OLD | NEW |
1 #ifndef _DRAW_H_ | 1 #ifndef _DRAW_H_ |
2 #define _DRAW_H_ 1 | 2 #define _DRAW_H_ 1 |
3 #if defined(__cplusplus) | 3 #if defined(__cplusplus) |
4 extern "C" {· | 4 extern "C" {· |
5 #endif | 5 #endif |
6 | 6 |
7 AUTOLIB(draw) | 7 AUTOLIB(draw) |
8 #ifdef __APPLE__ | 8 #ifdef __APPLE__ |
9 AUTOFRAMEWORK(Carbon) | 9 AUTOFRAMEWORK(Carbon) |
10 #endif | 10 #endif |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 uchar *obuf; | 197 uchar *obuf; |
198 int obufsize; | 198 int obufsize; |
199 uchar *obufp; | 199 uchar *obufp; |
200 Font *defaultfont; | 200 Font *defaultfont; |
201 Subfont *defaultsubfont; | 201 Subfont *defaultsubfont; |
202 Image *windows; | 202 Image *windows; |
203 Image *screenimage; | 203 Image *screenimage; |
204 int _isnewdisplay; | 204 int _isnewdisplay; |
205 struct Mux *mux; | 205 struct Mux *mux; |
206 int srvfd; | 206 int srvfd; |
| 207 int dpi; |
207 }; | 208 }; |
208 | 209 |
209 struct Image | 210 struct Image |
210 { | 211 { |
211 Display *display; /* display holding data */ | 212 Display *display; /* display holding data */ |
212 int id; /* id of system-held Image */ | 213 int id; /* id of system-held Image */ |
213 Rectangle r; /* rectangle in data area, local coords
*/ | 214 Rectangle r; /* rectangle in data area, local coords
*/ |
214 Rectangle clipr; /* clipping region */ | 215 Rectangle clipr; /* clipping region */ |
215 int depth; /* number of bits per pixel */ | 216 int depth; /* number of bits per pixel */ |
216 u32int chan; | 217 u32int chan; |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 char* _displayrdsnarf(Display *d); | 560 char* _displayrdsnarf(Display *d); |
560 int _displaywrdraw(Display *d, void *v, int n); | 561 int _displaywrdraw(Display *d, void *v, int n); |
561 int _displaywrsnarf(Display *d, char *snarf); | 562 int _displaywrsnarf(Display *d, char *snarf); |
562 int _displaytop(Display *d); | 563 int _displaytop(Display *d); |
563 int _displayresize(Display *d, Rectangle rect); | 564 int _displayresize(Display *d, Rectangle rect); |
564 | 565 |
565 #if defined(__cplusplus) | 566 #if defined(__cplusplus) |
566 } | 567 } |
567 #endif | 568 #endif |
568 #endif | 569 #endif |
OLD | NEW |