forked from I2P_Developers/i2p.i2p
Adding codebase for the Objective-C++ part of the Mac OS X launcher/wrapper.
This commit is contained in:
21
launchers/macosx/obj-cpp/StatusItemButton.h
Normal file
21
launchers/macosx/obj-cpp/StatusItemButton.h
Normal file
@ -0,0 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@class StatusItemButton;
|
||||
|
||||
@protocol StatusItemButtonDelegate <NSObject>
|
||||
|
||||
- (void) statusItemButtonLeftClick: (StatusItemButton *) button;
|
||||
- (void) statusItemButtonRightClick: (StatusItemButton *) button;
|
||||
|
||||
@end
|
||||
|
||||
@interface StatusItemButton : NSView
|
||||
|
||||
@property (strong, nonatomic) NSImage *image;
|
||||
@property (unsafe_unretained) id<StatusItemButtonDelegate> delegate;
|
||||
|
||||
- (instancetype) initWithImage: (NSImage *) image;
|
||||
|
||||
@end
|
Reference in New Issue
Block a user