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
/
ATMHud.h
107 lines (86 loc) · 2.88 KB
/
ATMHud.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
* ATMHud.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
*/
#import <UIKit/UIKit.h>
@class ATMHudView, ATMSoundFX, ATMHudQueueItem;
@protocol ATMHudDelegate;
typedef enum {
ATMHudAccessoryPositionTop = 0,
ATMHudAccessoryPositionRight,
ATMHudAccessoryPositionBottom,
ATMHudAccessoryPositionLeft
} ATMHudAccessoryPosition;
@interface ATMHud : UIViewController {
CGFloat margin;
CGFloat padding;
CGFloat alpha;
CGFloat appearScaleFactor;
CGFloat disappearScaleFactor;
CGFloat progressBorderRadius;
CGFloat progressBorderWidth;
CGFloat progressBarRadius;
CGFloat progressBarInset;
CGPoint center;
BOOL shadowEnabled;
BOOL blockTouches;
BOOL allowSuperviewInteraction;
NSString *showSound;
NSString *updateSound;
NSString *hideSound;
id <ATMHudDelegate> delegate;
ATMHudAccessoryPosition accessoryPosition;
@private
ATMHudView *__view;
ATMSoundFX *sound;
NSMutableArray *displayQueue;
NSInteger queuePosition;
}
@property (nonatomic, assign) CGFloat margin;
@property (nonatomic, assign) CGFloat padding;
@property (nonatomic, assign) CGFloat alpha;
@property (nonatomic, assign) CGFloat appearScaleFactor;
@property (nonatomic, assign) CGFloat disappearScaleFactor;
@property (nonatomic, assign) CGFloat progressBorderRadius;
@property (nonatomic, assign) CGFloat progressBorderWidth;
@property (nonatomic, assign) CGFloat progressBarRadius;
@property (nonatomic, assign) CGFloat progressBarInset;
@property (nonatomic, assign) CGPoint center;
@property (nonatomic, assign) BOOL shadowEnabled;
@property (nonatomic, assign) BOOL blockTouches;
@property (nonatomic, assign) BOOL allowSuperviewInteraction;
@property (nonatomic, retain) NSString *showSound;
@property (nonatomic, retain) NSString *updateSound;
@property (nonatomic, retain) NSString *hideSound;
@property (nonatomic, assign) id <ATMHudDelegate> delegate;
@property (nonatomic, assign) ATMHudAccessoryPosition accessoryPosition;
@property (nonatomic, retain) ATMHudView *__view;
@property (nonatomic, retain) ATMSoundFX *sound;
@property (nonatomic, retain) NSMutableArray *displayQueue;
@property (nonatomic, assign) NSInteger queuePosition;
+ (NSString *)buildInfo;
- (id)initWithDelegate:(id)hudDelegate;
- (void)setCaption:(NSString *)caption;
- (void)setImage:(UIImage *)image;
- (void)setActivity:(BOOL)activity;
- (void)setActivityStyle:(UIActivityIndicatorViewStyle)activityStyle;
- (void)setFixedSize:(CGSize)fixedSize;
- (void)setProgress:(CGFloat)progress;
- (void)addQueueItem:(ATMHudQueueItem *)item;
- (void)addQueueItems:(NSArray *)items;
- (void)clearQueue;
- (void)startQueue;
- (void)showNextInQueue;
- (void)showQueueAtIndex:(NSInteger)index;
- (void)show;
- (void)update;
- (void)hide;
- (void)hideAfter:(NSTimeInterval)delay;
- (void)playSound:(NSString *)soundPath;
@end