mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-15 15:15:51 +01:00
This commit integrates iOS platform support for Wails v3, adapting the iOS-specific code to work with the new transport layer architecture. Key changes: - Add iOS-specific application, webview, and runtime files - Add iOS event types and processing - Add iOS examples and templates - Update messageprocessor to handle iOS requests - Move badge_ios.go to dock package Note: The iOS branch was based on an older v3-alpha and required significant conflict resolution due to the transport layer refactor (PR #4702). Some iOS-specific code may need further adaptation: - processIOSMethod needs to be implemented with new RuntimeRequest signature - iOS event generation in tasks/events/generate.go needs updating 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
No EOL
1 KiB
Objective-C
24 lines
No EOL
1 KiB
Objective-C
//go:build darwin && !ios
|
|
|
|
#include <Cocoa/Cocoa.h>
|
|
|
|
@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 systemTraySetLabelColor(void* nsStatusItem, char *fg, char *bg);
|
|
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 systemTrayDestroy(void* nsStatusItem);
|
|
void showMenu(void* nsStatusItem, void *nsMenu);
|
|
void systemTrayGetBounds(void* nsStatusItem, NSRect *rect, void **screen);
|
|
NSRect NSScreen_frame(void* screen);
|
|
void windowSetScreen(void* window, void* screen, int yOffset);
|
|
int statusBarHeight();
|
|
void systemTrayPositionWindow(void* nsStatusItem, void* nsWindow, int offset); |