-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInterfaces.h
More file actions
96 lines (80 loc) · 3.04 KB
/
Interfaces.h
File metadata and controls
96 lines (80 loc) · 3.04 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
//
// Interfaces.h
// Pastie
//
// Created by Tanner Bennett on 2021-05-07
// Copyright © 2021 Tanner Bennett. All rights reserved.
//
#pragma mark Imports
#import <UIKit/UIKit.h>
#include <notify.h>
#import "PDBManager.h"
#import "PastieWindow.h"
#import "PBViewController.h"
#ifndef __APPLE__
#define LIGHTMESSAGING_USE_ROCKETBOOTSTRAP 500
#import <LightMessaging/LightMessaging.h>
#endif
#pragma mark Interfaces
@interface _UISheetPresentationController : UIPresentationController
@property (setter=_setPresentsAtStandardHalfHeight:) BOOL _presentsAtStandardHalfHeight;
@end
@interface UIInputSwitcherView : UIView
- (void)hide;
@end
@interface UIInputSwitcherItem : NSObject
+ (instancetype)switcherItemWithIdentifier:(NSString *)identifier;
@property NSString *identifier;
@property NSString *localizedTitle;
@end
@interface SBBannerManager : NSObject
@property (nonatomic, readonly) UIWindow *bannerWindow;
@end
@interface SpringBoard : UIApplication
@property (nonatomic, readonly) SBBannerManager *bannerManager;
@end
typedef NS_ENUM(char, TypeEncoding) {
TypeEncodingNull = '\0',
TypeEncodingUnknown = '?',
TypeEncodingChar = 'c',
TypeEncodingInt = 'i',
TypeEncodingShort = 's',
TypeEncodingLong = 'l',
TypeEncodingLongLong = 'q',
TypeEncodingUnsignedChar = 'C',
TypeEncodingUnsignedInt = 'I',
TypeEncodingUnsignedShort = 'S',
TypeEncodingUnsignedLong = 'L',
TypeEncodingUnsignedLongLong = 'Q',
TypeEncodingFloat = 'f',
TypeEncodingDouble = 'd',
TypeEncodingLongDouble = 'D',
TypeEncodingCBool = 'B',
TypeEncodingVoid = 'v',
TypeEncodingCString = '*',
TypeEncodingObjcObject = '@',
TypeEncodingObjcClass = '#',
TypeEncodingSelector = ':',
TypeEncodingArrayBegin = '[',
TypeEncodingArrayEnd = ']',
TypeEncodingStructBegin = '{',
TypeEncodingStructEnd = '}',
TypeEncodingUnionBegin = '(',
TypeEncodingUnionEnd = ')',
TypeEncodingQuote = '\"',
TypeEncodingBitField = 'b',
TypeEncodingPointer = '^',
TypeEncodingConst = 'r'
};
#pragma mark Macros
#define _kPackageName "com.nscake.pastie"
#define kPackageName @ _kPackageName
#define Alert(TITLE,MSG) [[[UIAlertView alloc] initWithTitle:(TITLE) \
message:(MSG) \
delegate:nil \
cancelButtonTitle:@"OK" \
otherButtonTitles:nil] show];
#define UIAlertController(title, msg) [UIAlertController alertControllerWithTitle:title message:msg preferredStyle:1]
#define UIAlertControllerAddAction(alert, title, stl, code...) [alert addAction:[UIAlertAction actionWithTitle:title style:stl handler:^(id action) code]];
#define UIAlertControllerAddCancel(alert) [alert addAction:[UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:nil]
#define ShowAlertController(alert, from) [from presentViewController:alert animated:YES completion:nil];