git.y1.nz

SameBoy

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

Cocoa/GBImageView.h

      1 #import <Cocoa/Cocoa.h>
      2 
      3 @protocol GBImageViewDelegate;
      4 
      5 @interface GBImageViewGridConfiguration : NSObject
      6 @property (nonatomic, strong) NSColor *color;
      7 @property (nonatomic) NSUInteger size;
      8 - (instancetype) initWithColor: (NSColor *) color size: (NSUInteger) size;
      9 @end
     10 
     11 @interface GBImageView : NSImageView
     12 @property (nonatomic, strong) NSArray<GBImageViewGridConfiguration *> *horizontalGrids;
     13 @property (nonatomic, strong) NSArray<GBImageViewGridConfiguration *> *verticalGrids;
     14 @property (nonatomic) bool displayScrollRect;
     15 @property NSRect scrollRect;
     16 @property (nonatomic, weak) IBOutlet id<GBImageViewDelegate> delegate;
     17 @end
     18 
     19 @protocol GBImageViewDelegate <NSObject>
     20 @optional
     21 - (void) mouseDidLeaveImageView: (GBImageView *)view;
     22 - (void) imageView: (GBImageView *)view mouseMovedToX:(NSUInteger) x Y:(NSUInteger) y;
     23 @end

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