-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmacros.h
38 lines (28 loc) · 995 Bytes
/
macros.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
#import <UIKit/UIKit.h>
#define DEG_TO_RAD(degress) ((degress) * M_PI / 180.0)
#define min(a,b) ((a<b)?a:b)
#define PrefValue(key) ([NSUserDefaults.standardUserDefaults \
objectForKey:key \
inDomain:@"com.pixelomer.mobilegoose" \
])
@interface NSUserDefaults(Private)
- (id)objectForKey:(NSString *)key inDomain:(NSString *)domain;
@end
@interface NSDistributedNotificationCenter : NSNotificationCenter
@end
@interface UIView(Private)
- (UIViewController *)_viewControllerForAncestor;
@end
#import <Goose/MGGooseView.h>
@class SpringBoard;
@protocol MGMod
@required
@property (nonatomic, assign) BOOL enabled;
@optional
- (void)preferenceWithKey:(NSString *)key didChangeToValue:(id)value;
- (instancetype)initWithGoose:(MGGooseView *)goose;
- (instancetype)initWithGoose:(MGGooseView *)goose bundle:(NSBundle *)bundle;
- (void)handleFrameInState:(MGGooseFrameState)state;
- (void)springboardDidFinishLaunching:(SpringBoard *)application;
@end
CGAffineTransform MGGetTransform(void);