36 extern "C" { 37 #endif 38 39 @class AWTTrayIconView; 40 41 /* 42 * AWTTrayIcon 43 */ 44 @interface AWTTrayIcon : NSObject { 45 jobject peer; 46 AWTTrayIconView *view; 47 NSStatusItem *theItem; 48 } 49 50 - (id) initWithPeer:(jobject)thePeer; 51 - (void) setTooltip:(NSString *)tooltip; 52 - (NSStatusItem *)theItem; 53 - (jobject) peer; 54 - (void) setImage:(NSImage *) imagePtr sizing:(BOOL)autosize; 55 - (NSPoint) getLocationOnScreen; 56 57 @end //AWTTrayIcon 58 59 //================================================================================== 60 /* 61 * AWTTrayIconView */ 62 @interface AWTTrayIconView : NSView <NSMenuDelegate> { 63 @public 64 AWTTrayIcon *trayIcon; 65 NSImage* image; 66 BOOL isHighlighted; 67 } 68 -(id)initWithTrayIcon:(AWTTrayIcon *)theTrayIcon; 69 -(void)setHighlighted:(BOOL)aFlag; 70 -(void)setImage:(NSImage*)anImage; 71 72 @end //AWTTrayIconView 73 74 #ifdef __cplusplus 75 } 76 #endif 77 #endif | 36 extern "C" { 37 #endif 38 39 @class AWTTrayIconView; 40 41 /* 42 * AWTTrayIcon 43 */ 44 @interface AWTTrayIcon : NSObject { 45 jobject peer; 46 AWTTrayIconView *view; 47 NSStatusItem *theItem; 48 } 49 50 - (id) initWithPeer:(jobject)thePeer; 51 - (void) setTooltip:(NSString *)tooltip; 52 - (NSStatusItem *)theItem; 53 - (jobject) peer; 54 - (void) setImage:(NSImage *) imagePtr sizing:(BOOL)autosize; 55 - (NSPoint) getLocationOnScreen; 56 - (void) deliverJavaMouseEvent:(NSEvent*) event; 57 58 @end //AWTTrayIcon 59 60 //================================================================================== 61 /* 62 * AWTTrayIconView */ 63 @interface AWTTrayIconView : NSView <NSMenuDelegate> { 64 @public 65 AWTTrayIcon *trayIcon; 66 NSImage* image; 67 BOOL isHighlighted; 68 } 69 -(id)initWithTrayIcon:(AWTTrayIcon *)theTrayIcon; 70 -(void)setHighlighted:(BOOL)aFlag; 71 -(void)setImage:(NSImage*)anImage; 72 -(void)setTrayIcon:(AWTTrayIcon*)theTrayIcon; 73 74 @end //AWTTrayIconView 75 76 #ifdef __cplusplus 77 } 78 #endif 79 #endif |