yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
app_delegate.h
Go to the documentation of this file.
1#ifndef YAZE_APP_CORE_PLATFORM_APP_DELEGATE_H
2#define YAZE_APP_CORE_PLATFORM_APP_DELEGATE_H
3
4#if defined(__APPLE__) && defined(__MACH__)
5/* Apple OSX and iOS (Darwin). */
6#import <CoreText/CoreText.h>
7#include <TargetConditionals.h>
8
9#if TARGET_IPHONE_SIMULATOR == 1 || TARGET_OS_IPHONE == 1
10/* iOS in Xcode simulator */
11#import <PencilKit/PencilKit.h>
12#import <UIKit/UIKit.h>
13
14@interface AppDelegate : UIResponder <UIApplicationDelegate,
15 UIDocumentPickerDelegate,
16 UITabBarControllerDelegate,
17 PKCanvasViewDelegate>
18@property(strong, nonatomic) UIWindow *window;
19
20@property UIDocumentPickerViewController *documentPicker;
21@property(nonatomic, copy) void (^completionHandler)(NSString *selectedFile);
22- (void)PresentDocumentPickerWithCompletionHandler:
23 (void (^)(NSString *selectedFile))completionHandler;
24
25// TODO: Setup a tab bar controller for multiple yaze instances
26@property(nonatomic) UITabBarController *tabBarController;
27
28// TODO: Setup a font picker for the text editor and display settings
29@property(nonatomic) UIFontPickerViewController *fontPicker;
30
31// TODO: Setup the pencil kit for drawing
32@property PKToolPicker *toolPicker;
33@property PKCanvasView *canvasView;
34
35// TODO: Setup the file manager for file operations
36@property NSFileManager *fileManager;
37
38@end
39
40#elif TARGET_OS_MAC == 1
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
49void yaze_initialize_cocoa();
50
54void yaze_run_cocoa_app_delegate(const char *filename);
55
56#ifdef __cplusplus
57} // extern "C"
58#endif
59
60#endif // TARGET_OS_MAC
61
62#endif // defined(__APPLE__) && defined(__MACH__)
63
64#endif // YAZE_APP_CORE_PLATFORM_APP_DELEGATE_H