mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 16:40:41 +08:00
19 lines
816 B
Objective-C
19 lines
816 B
Objective-C
//go:build darwin
|
|
|
|
@interface StatusItemController : NSObject
|
|
@property long id;
|
|
- (void)statusItemClicked:(id)sender;
|
|
@end
|
|
|
|
void* systemTrayNew(long id);
|
|
void systemTraySetLabel(void* nsStatusItem, char *label);
|
|
void systemTraySetANSILabel(void* nsStatusItem, void* attributedString);
|
|
void* createAttributedString(char *title, char *FG, char *BG);
|
|
void* appendAttributedString(void* original, char* label, char* fg, char* bg);
|
|
NSImage* imageFromBytes(const unsigned char *bytes, int length);
|
|
void systemTraySetIcon(void* nsStatusItem, void* nsImage, int position, bool isTemplate);
|
|
void systemTraySetMenu(void* nsStatusItem, void* nsMenu);
|
|
void systemTrayDestroy(void* nsStatusItem);
|
|
void showMenu(void* nsStatusItem, void *nsMenu);
|
|
void systemTrayGetBounds(void* nsStatusItem, NSRect *rect);
|
|
int statusBarHeight(); |