source: launchers/macosx/obj-cpp/StatusItemButton.h @ f9fbc76

Last change on this file since f9fbc76 was f9fbc76, checked in by meeh <meeh@…>, 2 years ago

Code changes:

  • Port check to see if i2p is already running.
  • All buttons in the menu should work now.
  • Rewrote some C++ to Objective-C, which fits better with the integration.
  • Misc cleanup.
  • Made the launch of router repeatable.
  • Property mode set to 100644
File size: 541 bytes
Line 
1#pragma once
2
3#import <Cocoa/Cocoa.h>
4
5/**
6 *
7 * This is a class representing the "image" in the systray.
8 *
9 *
10 * **/
11@class StatusItemButton;
12
13@protocol StatusItemButtonDelegate <NSObject>
14
15- (void) statusItemButtonLeftClick: (StatusItemButton *) button;
16- (void) statusItemButtonRightClick: (StatusItemButton *) button;
17
18@end
19
20@interface StatusItemButton : NSView
21
22@property (strong, nonatomic) NSImage *image;
23@property (unsafe_unretained) id<StatusItemButtonDelegate> delegate;
24
25- (instancetype) initWithImage: (NSImage *) image;
26
27@end
Note: See TracBrowser for help on using the repository browser.