mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-27 11:00:47 +00:00
24 lines
834 B
Objective-C
24 lines
834 B
Objective-C
#import <Cocoa/Cocoa.h>
|
|
|
|
@protocol GBImageViewDelegate;
|
|
|
|
@interface GBImageViewGridConfiguration : NSObject
|
|
@property (nonatomic, strong) NSColor *color;
|
|
@property (nonatomic) NSUInteger size;
|
|
- (instancetype) initWithColor: (NSColor *) color size: (NSUInteger) size;
|
|
@end
|
|
|
|
@interface GBImageView : NSImageView
|
|
@property (nonatomic, strong) NSArray<GBImageViewGridConfiguration *> *horizontalGrids;
|
|
@property (nonatomic, strong) NSArray<GBImageViewGridConfiguration *> *verticalGrids;
|
|
@property (nonatomic) bool displayScrollRect;
|
|
@property NSRect scrollRect;
|
|
@property (nonatomic, weak) IBOutlet id<GBImageViewDelegate> delegate;
|
|
@end
|
|
|
|
@protocol GBImageViewDelegate <NSObject>
|
|
@optional
|
|
- (void) mouseDidLeaveImageView: (GBImageView *)view;
|
|
- (void) imageView: (GBImageView *)view mouseMovedToX:(NSUInteger) x Y:(NSUInteger) y;
|
|
@end
|