forked from atomton/ATMHud
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathATMHudView.h
47 lines (37 loc) · 1.26 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
/*
* ATMHudView.h
* ATMHud
*
* Created by Marcel Müller on 2011-03-01.
* Copyright (c) 2010-2011, Marcel Müller (atomcraft)
* Copyright (c) 2012-2014, David Hoerl
* All rights reserved.
*
* https://github.com/atomton/ATMHud (original)
*/
#import <UIKit/UIKit.h>
@class ATMTextLayer, ATMProgressLayer, ATMHud, ATMHudQueueItem;
typedef enum {
ATMHudApplyModeShow = 0,
ATMHudApplyModeUpdate,
ATMHudApplyModeHide
} ATMHudApplyMode;
@interface ATMHudView : UIView
@property (nonatomic, weak) ATMHud *hud; // delegate
@property (nonatomic, strong) NSString *caption;
@property (nonatomic, strong) UIImage *image;
@property (nonatomic, strong) UIActivityIndicatorView *activity;
@property (nonatomic, assign) UIActivityIndicatorViewStyle activityStyle;
@property (nonatomic, assign) BOOL showActivity;
@property (nonatomic, assign) CGFloat progress;
@property (nonatomic, assign) CGSize fixedSize;
@property (nonatomic, assign) CGSize activitySize;
@property (nonatomic, strong) CALayer *backgroundLayer;
@property (nonatomic, strong) UIColor *hudBackgroundColor;
- (instancetype)initWithFrame:(CGRect)frame andController:(ATMHud *)c;
- (CGSize)calculateSizeForQueueItem:(ATMHudQueueItem *)item;
- (void)show;
- (void)reset;
- (void)update;
- (void)hide;
@end