git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

Cocoa/Document.h

      1 #import <Cocoa/Cocoa.h>
      2 #import "GBView.h"
      3 #import "GBImageView.h"
      4 #import "GBSplitView.h"
      5 #import "GBVisualizerView.h"
      6 #import "GBCPUView.h"
      7 #import "GBOSDView.h"
      8 #import "GBDebuggerButton.h"
      9 
     10 enum model {
     11     MODEL_NONE,
     12     MODEL_DMG,
     13     MODEL_CGB,
     14     MODEL_AGB,
     15     MODEL_SGB,
     16     MODEL_MGB,
     17     MODEL_AUTO,
     18     
     19     MODEL_QUICK_RESET = -1,
     20 };
     21 
     22 @class GBCheatWindowController;
     23 @class GBPaletteView;
     24 @class GBObjectView;
     25 
     26 @interface Document : NSDocument <NSWindowDelegate, GBImageViewDelegate, NSSplitViewDelegate>
     27 @property (readonly) GB_gameboy_t *gb;
     28 @property IBOutlet GBView *view;
     29 @property IBOutlet NSTextView *consoleOutput;
     30 @property IBOutlet NSPanel *consoleWindow;
     31 @property IBOutlet NSTextField *consoleInput;
     32 @property IBOutlet NSWindow *mainWindow;
     33 @property IBOutlet NSView *memoryView;
     34 @property IBOutlet NSPanel *memoryWindow;
     35 @property (readonly) GB_gameboy_t *gameboy;
     36 @property IBOutlet NSTextField *memoryBankInput;
     37 @property IBOutlet NSToolbarItem *memoryBankItem;
     38 @property IBOutlet NSPopUpButton *memorySpaceButton;
     39 @property IBOutlet GBImageView *tilesetImageView;
     40 @property IBOutlet NSPopUpButton *tilesetPaletteButton;
     41 @property IBOutlet GBImageView *tilemapImageView;
     42 @property IBOutlet NSPopUpButton *tilemapPaletteButton;
     43 @property IBOutlet NSPopUpButton *tilemapMapButton;
     44 @property IBOutlet NSPopUpButton *TilemapSetButton;
     45 @property IBOutlet NSButton *gridButton;
     46 @property IBOutlet NSTabView *vramTabView;
     47 @property IBOutlet NSPanel *vramWindow;
     48 @property IBOutlet NSTextField *vramStatusLabel;
     49 @property IBOutlet GBPaletteView *paletteView;
     50 @property IBOutlet GBObjectView *objectView;
     51 @property IBOutlet NSPanel *printerFeedWindow;
     52 @property IBOutlet NSProgressIndicator *printerSpinner;
     53 @property IBOutlet NSImageView *feedImageView;
     54 @property IBOutlet NSTextView *debuggerSideViewInput;
     55 @property IBOutlet NSTextView *debuggerSideView;
     56 @property IBOutlet GBSplitView *debuggerSplitView;
     57 @property IBOutlet NSBox *debuggerVerticalLine;
     58 @property IBOutlet NSPanel *cheatsWindow;
     59 @property IBOutlet GBCheatWindowController *cheatWindowController;
     60 @property (readonly) Document *partner;
     61 @property (readonly) bool isSlave;
     62 @property IBOutlet NSView *gbsPlayerView;
     63 @property IBOutlet NSTextField *gbsTitle;
     64 @property IBOutlet NSTextField *gbsAuthor;
     65 @property IBOutlet NSTextField *gbsCopyright;
     66 @property IBOutlet NSPopUpButton *gbsTracks;
     67 @property IBOutlet NSButton *gbsPlayPauseButton;
     68 @property IBOutlet NSButton *gbsRewindButton;
     69 @property IBOutlet NSSegmentedControl *gbsNextPrevButton;
     70 @property IBOutlet GBVisualizerView *gbsVisualizer;
     71 @property IBOutlet GBOSDView *osdView;
     72 @property (readonly) GB_oam_info_t *oamInfo;
     73 @property uint8_t oamCount;
     74 @property uint8_t oamHeight;
     75 @property IBOutlet NSView *audioRecordingAccessoryView;
     76 @property IBOutlet NSPopUpButton *audioFormatButton;
     77 @property IBOutlet NSVisualEffectView *debuggerSidebarEffectView API_AVAILABLE(macos(10.10));
     78 
     79 @property IBOutlet GBDebuggerButton *debuggerContinueButton;
     80 @property IBOutlet GBDebuggerButton *debuggerNextButton;
     81 @property IBOutlet GBDebuggerButton *debuggerStepButton;
     82 @property IBOutlet GBDebuggerButton *debuggerFinishButton;
     83 @property IBOutlet GBDebuggerButton *debuggerBackstepButton;
     84 
     85 @property IBOutlet NSScrollView *debuggerScrollView;
     86 @property IBOutlet NSView *debugBar;
     87 
     88 @property IBOutlet GBCPUView *cpuView;
     89 @property IBOutlet NSTextField *cpuCounter;
     90 
     91 + (NSImage *) imageFromData:(NSData *)data width:(NSUInteger) width height:(NSUInteger) height scale:(double) scale;
     92 - (void) performAtomicBlock: (void (^)())block;
     93 - (void) connectLinkCable:(NSMenuItem *)sender;
     94 - (int)loadStateFile:(const char *)path noErrorOnNotFound:(bool)noErrorOnFileNotFound;
     95 - (NSString *)captureOutputForBlock: (void (^)())block;
     96 - (NSFont *)debuggerFontOfSize:(unsigned)size;
     97 - (void)setROMModified;
     98 @end
     99 

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.