3 |
|
* |
4 |
|
* $Id$ |
5 |
|
* |
6 |
< |
* Basilisk II (C) 1997-2002 Christian Bauer |
6 |
> |
* Basilisk II (C) 1997-2005 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 |
51 |
|
fullScreen; // Is this Emulator using the whole screen? |
52 |
|
|
53 |
|
NSRect displayBox; // Cached dimensions of the screen |
54 |
< |
int screen_height; |
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 |
85 |
|
- (void) disableDrawing; |
86 |
|
- (void) startedFullScreen: (CGDirectDisplayID) theDisplay; |
87 |
|
|
88 |
+ |
- (void) blacken; |
89 |
+ |
- (void) clear; |
90 |
+ |
|
91 |
|
- (short) width; |
92 |
|
- (short) height; |
93 |
|
|
94 |
|
- (BOOL) isFullScreen; |
95 |
|
- (BOOL) mouseInView: (NSEvent *) event; |
96 |
|
- (BOOL) mouseInView; |
97 |
+ |
- (void) fullscreenMouseMove; |
98 |
|
- (BOOL) processMouseMove: (NSEvent *) event; |
99 |
|
|
100 |
|
#ifdef CGDRAWBITMAP |