Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 85 lines (66 sloc) 2.199 kB
a8abca0 @atomton Initial commit
atomton authored
1 /*
2 * ATMHudView.h
3 * ATMHud
4 *
5 * Created by Marcel Müller on 2011-03-01.
6 * Copyright (c) 2010-2011, Marcel Müller (atomcraft)
7 * All rights reserved.
8 *
9 * https://github.com/atomton/ATMHud
10 */
11
12 @class ATMTextLayer, ATMProgressLayer, ATMHud, ATMHudQueueItem;
13
14 typedef enum {
15 ATMHudApplyModeShow = 0,
16 ATMHudApplyModeUpdate,
17 ATMHudApplyModeHide
18 } ATMHudApplyMode;
19
20 @interface ATMHudView : UIView {
21 NSString *caption;
22 UIImage *image;
23 UIActivityIndicatorView *activity;
24 UIActivityIndicatorViewStyle activityStyle;
25 ATMHud *p;
26
27 BOOL showActivity;
28
29 CGFloat progress;
30
31 CGRect targetBounds;
32 CGRect captionRect;
33 CGRect progressRect;
34 CGRect activityRect;
35 CGRect imageRect;
36
37 CGSize fixedSize;
38 CGSize activitySize;
39
40 CALayer *backgroundLayer;
41 CALayer *imageLayer;
42 ATMTextLayer *captionLayer;
43 ATMProgressLayer *progressLayer;
44 }
45
46 @property (nonatomic, retain) NSString *caption;
47 @property (nonatomic, retain) UIImage *image;
48 @property (nonatomic, retain) UIActivityIndicatorView *activity;
49 @property (nonatomic, assign) UIActivityIndicatorViewStyle activityStyle;
50 @property (nonatomic, retain) ATMHud *p;
51
52 @property (nonatomic, assign) BOOL showActivity;
53
54 @property (nonatomic, assign) CGFloat progress;
55
56 @property (nonatomic, assign) CGRect targetBounds;
57 @property (nonatomic, assign) CGRect captionRect;
58 @property (nonatomic, assign) CGRect progressRect;
59 @property (nonatomic, assign) CGRect activityRect;
60 @property (nonatomic, assign) CGRect imageRect;
61
62 @property (nonatomic, assign) CGSize fixedSize;
63 @property (nonatomic, assign) CGSize activitySize;
64
65 @property (nonatomic, retain) CALayer *backgroundLayer;
66 @property (nonatomic, retain) CALayer *imageLayer;
67 @property (nonatomic, retain) ATMTextLayer *captionLayer;
68 @property (nonatomic, retain) ATMProgressLayer *progressLayer;
69
70 - (id)initWithFrame:(CGRect)frame andController:(ATMHud *)c;
71
72 - (CGRect)sharpRect:(CGRect)rect;
73 - (CGPoint)sharpPoint:(CGPoint)point;
74
75 - (void)calculate;
76 - (CGSize)calculateSizeForQueueItem:(ATMHudQueueItem *)item;
77 - (CGSize)sizeForActivityStyle:(UIActivityIndicatorViewStyle)style;
78 - (void)applyWithMode:(ATMHudApplyMode)mode;
79 - (void)show;
80 - (void)reset;
81 - (void)update;
82 - (void)hide;
83
84 @end
Something went wrong with that request. Please try again.