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 <UIKit/UIKit.h>
12
13#import <PencilKit/PencilKit.h>
14
15@interface AppDelegate : UIResponder <UIApplicationDelegate, UIDocumentPickerDelegate, UITabBarControllerDelegate, PKCanvasViewDelegate>
16@property (strong, nonatomic) UIWindow *window;
17
18@property UIDocumentPickerViewController *documentPicker;
19@property (nonatomic, copy) void (^completionHandler)(NSString *selectedFile);
20- (void)PresentDocumentPickerWithCompletionHandler:(void (^)(NSString *selectedFile))completionHandler;
21
22// TODO: Setup a tab bar controller for multiple yaze instances
23@property (nonatomic) UITabBarController *tabBarController;
24
25// TODO: Setup a font picker for the text editor and display settings
26@property (nonatomic) UIFontPickerViewController *fontPicker;
27
28// TODO: Setup the pencil kit for drawing
29@property PKToolPicker *toolPicker;
30@property PKCanvasView *canvasView;
31
32// TODO: Setup the file manager for file operations
33@property NSFileManager *fileManager;
34
35@end
36
37#elif TARGET_OS_MAC == 1
38
39#ifdef __cplusplus
40extern "C" {
41#endif
42
43void InitializeCocoa();
44
45#ifdef __cplusplus
46} // extern "C"
47#endif
48
49#endif // TARGET_OS_MAC
50
51#endif // defined(__APPLE__) && defined(__MACH__)
52
53#endif // YAZE_APP_CORE_PLATFORM_APP_DELEGATE_H