This repository has been archived by the owner on May 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
/
ATMHudView.h
84 lines (66 loc) · 2.15 KB
/
ATMHudView.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
84
/*
* ATMHudView.h
* ATMHud
*
* Created by Marcel Müller on 2011-03-01.
* Copyright (c) 2010-2011, Marcel Müller (atomcraft)
* All rights reserved.
*
* https://github.com/atomton/ATMHud
*/
@class ATMTextLayer, ATMProgressLayer, ATMHud, ATMHudQueueItem;
typedef enum {
ATMHudApplyModeShow = 0,
ATMHudApplyModeUpdate,
ATMHudApplyModeHide
} ATMHudApplyMode;
@interface ATMHudView : UIView {
NSString *caption;
UIImage *image;
UIActivityIndicatorView *activity;
UIActivityIndicatorViewStyle activityStyle;
ATMHud *p;
BOOL showActivity;
CGFloat progress;
CGRect targetBounds;
CGRect captionRect;
CGRect progressRect;
CGRect activityRect;
CGRect imageRect;
CGSize fixedSize;
CGSize activitySize;
CALayer *backgroundLayer;
CALayer *imageLayer;
ATMTextLayer *captionLayer;
ATMProgressLayer *progressLayer;
}
@property (nonatomic, retain) NSString *caption;
@property (nonatomic, retain) UIImage *image;
@property (nonatomic, retain) UIActivityIndicatorView *activity;
@property (nonatomic, assign) UIActivityIndicatorViewStyle activityStyle;
@property (nonatomic, retain) ATMHud *p;
@property (nonatomic, assign) BOOL showActivity;
@property (nonatomic, assign) CGFloat progress;
@property (nonatomic, assign) CGRect targetBounds;
@property (nonatomic, assign) CGRect captionRect;
@property (nonatomic, assign) CGRect progressRect;
@property (nonatomic, assign) CGRect activityRect;
@property (nonatomic, assign) CGRect imageRect;
@property (nonatomic, assign) CGSize fixedSize;
@property (nonatomic, assign) CGSize activitySize;
@property (nonatomic, retain) CALayer *backgroundLayer;
@property (nonatomic, retain) CALayer *imageLayer;
@property (nonatomic, retain) ATMTextLayer *captionLayer;
@property (nonatomic, retain) ATMProgressLayer *progressLayer;
- (id)initWithFrame:(CGRect)frame andController:(ATMHud *)c;
- (CGRect)sharpRect:(CGRect)rect;
- (CGPoint)sharpPoint:(CGPoint)point;
- (void)calculate;
- (CGSize)calculateSizeForQueueItem:(ATMHudQueueItem *)item;
- (CGSize)sizeForActivityStyle:(UIActivityIndicatorViewStyle)style;
- (void)applyWithMode:(ATMHudApplyMode)mode;
- (void)show;
- (void)reset;
- (void)update;
- (void)hide;
@end