-
Notifications
You must be signed in to change notification settings - Fork 9
/
Interfaces.h
83 lines (65 loc) · 2.09 KB
/
Interfaces.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
//
// Interfaces.h
// Muta
//
// Created by Tanner Bennett on 2016-10-06
// Copyright © 2016 Tanner Bennett. All rights reserved.
//
#pragma mark Imports
#import "TBTweakRootViewController.h"
#import "SwizzleInit.h"
#pragma mark Macros
/// ie PropertyForKey(dateLabel, UILabel *, UITableViewCell)
#define PropertyForKey(key, propertyType, class) \
@interface class (key) @property (readonly) propertyType key; @end \
@implementation class (key) - (propertyType)key { return [self valueForKey:@"_"@#key]; } @end
#define RWPropertyInf(key, propertyType, class) \
@interface class (key) @property propertyType key; @end
#define Alert(TITLE,MSG) [[[UIAlertView alloc] initWithTitle:(TITLE) \
message:(MSG) \
delegate:nil \
cancelButtonTitle:@"OK" \
otherButtonTitles:nil] show]
#pragma mark Interfaces
typedef NS_ENUM(NSUInteger, FLEXExplorerMode) {
FLEXExplorerModeDefault,
FLEXExplorerModeSelect,
FLEXExplorerModeMove
};
@interface FLEXToolbarItem : UIButton
+ (instancetype)toolbarItemWithTitle:(NSString *)title image:(UIImage *)image;
@end
@interface FLEXExplorerToolbar : UIView
@property FLEXToolbarItem *moveItem;
@property NSMutableArray<FLEXToolbarItem*> *toolbarItems;
@end
@interface FLEXExplorerViewController : UIViewController
@property (readonly) FLEXExplorerMode currentMode;
@property FLEXExplorerToolbar *explorerToolbar;
- (void)toggleToolWithViewControllerProvider:(UIViewController *(^)())future completion:(void(^)())completion;
@end
@interface FLEXManager : NSObject
+ (instancetype)sharedManager;
- (void)__toggleSwizzleMenu;
@property UIWindow *explorerWindow;
@property FLEXExplorerViewController *explorerViewController;
@end
@interface FLEXResources : NSObject
+ (UIImage *)closeIcon;
+ (UIImage *)dragHandle;
+ (UIImage *)globeIcon;
+ (UIImage *)hierarchyIndentPattern;
+ (UIImage *)listIcon;
+ (UIImage *)moveIcon;
+ (UIImage *)selectIcon;
+ (UIImage *)jsonIcon;
+ (UIImage *)textPlainIcon;
+ (UIImage *)htmlIcon;
+ (UIImage *)audioIcon;
+ (UIImage *)jsIcon;
+ (UIImage *)plistIcon;
+ (UIImage *)textIcon;
+ (UIImage *)videoIcon;
+ (UIImage *)xmlIcon;
+ (UIImage *)binaryIcon;
@end