3 |
|
* |
4 |
|
* $Id$ |
5 |
|
* |
6 |
< |
* Basilisk II (C) 1997-2002 Christian Bauer |
6 |
> |
* Basilisk II (C) 1997-2003 Christian Bauer |
7 |
|
* |
8 |
|
* This program is free software; you can redistribute it and/or modify |
9 |
|
* it under the terms of the GNU General Public License as published by |
30 |
|
@interface EmulatorView : NSView |
31 |
|
{ |
32 |
|
#ifdef CGIMAGEREF |
33 |
< |
CGImageRef bitmap; |
33 |
> |
CGImageRef cgImgRep; |
34 |
|
#endif |
35 |
|
#ifdef NSBITMAP |
36 |
|
NSBitmapImageRep *bitmap; |
37 |
+ |
#else |
38 |
+ |
void *bitmap; |
39 |
|
#endif |
38 |
– |
|
40 |
|
#ifdef CGDRAWBITMAP |
40 |
– |
void *bitmap; |
41 |
|
short bps, spp, bpp; |
42 |
|
int bytesPerRow; |
43 |
|
BOOL isPlanar, hasAlpha; |
44 |
|
#endif |
45 |
+ |
float numBytes; |
46 |
+ |
|
47 |
|
short x, y; |
48 |
|
|
49 |
< |
BOOL drawView; // Set when the bitmap is all set up |
49 |
> |
BOOL drawView, // Set when the bitmap is all set up |
50 |
|
// and ready to display |
51 |
+ |
fullScreen; // Is this Emulator using the whole screen? |
52 |
+ |
|
53 |
+ |
NSRect displayBox; // Cached dimensions of the screen |
54 |
+ |
|
55 |
+ |
int screen_height; // Height of the screen with the key window |
56 |
|
} |
57 |
|
|
58 |
|
- (void) benchmark; |
66 |
|
#endif |
67 |
|
#ifdef CGIMAGEREF |
68 |
|
- (void) readyToDraw: (CGImageRef) image |
69 |
+ |
bitmap: (void *) theBitmap |
70 |
|
imageWidth: (short) width |
71 |
|
imageHeight: (short) height; |
72 |
|
#endif |
83 |
|
#endif |
84 |
|
|
85 |
|
- (void) disableDrawing; |
86 |
+ |
- (void) startedFullScreen: (CGDirectDisplayID) theDisplay; |
87 |
|
|
88 |
|
- (short) width; |
89 |
|
- (short) height; |
90 |
|
|
91 |
+ |
- (BOOL) isFullScreen; |
92 |
|
- (BOOL) mouseInView: (NSEvent *) event; |
93 |
|
- (BOOL) mouseInView; |
94 |
+ |
- (void) fullscreenMouseMove; |
95 |
|
- (BOOL) processMouseMove: (NSEvent *) event; |
96 |
|
|
97 |
|
#ifdef CGDRAWBITMAP |