-
Notifications
You must be signed in to change notification settings - Fork 2
/
VolumeBar.h
85 lines (74 loc) · 2.26 KB
/
VolumeBar.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
/*
* VolumeBar.h
* VolumeBar9
*
* Created by cgm616
* Copyright (c) 2016 cgm616. All rights reserved.
*/
#import <UIKit/UIKit.h>
#import <UIImage+Scale.h>
#import <CoreGraphics/CoreGraphics.h>
#import <AudioToolbox/AudioToolbox.h>
#import "GMPVolumeView.h"
#import <UIKit/_UIBackdropView.h>
#import <UIKit/_UIBackdropViewSettings.h>
#import <SpringBoard/VolumeControl.h>
#import <Celestial/AVSystemController.h>
#import "Shared.h"
#include <tgmath.h>
@interface VolumeBar : NSObject {
UIWindow *topWindow;
UIView *mainView;
_UIBackdropView *blurView;
_UIBackdropViewSettings *blurSettings;
UIView *handle;
UIImage *thumbImage;
UILabel *label;
GMPVolumeView *volumeSlider;
NSTimer *hide;
CGFloat screenWidth;
CGFloat screenHeight;
CGFloat bannerWidth;
CGFloat bannerX;
CGFloat bannerHeight;
CGFloat bannerY;
CGFloat sliderWidth;
CGFloat sliderX;
CGFloat sliderHeight;
CGFloat sliderY;
id _view;
NSBundle *_bundle;
}
@property (nonatomic) BOOL animate;
@property (nonatomic) BOOL userInteraction;
@property (nonatomic) BOOL showRouteButton;
@property (nonatomic) BOOL blur;
@property (nonatomic) BOOL drop;
@property (nonatomic) BOOL icon;
@property (nonatomic) BOOL adaptive;
@property (nonatomic, strong) UIColor *statusBarForegroundColor;
@property (nonatomic) BOOL statusBar;
@property (nonatomic) BOOL gesture;
@property (nonatomic) BOOL slideHandle;
@property (nonatomic) BOOL label;
@property (nonatomic) double delayTime;
@property (nonatomic) double speed;
@property (nonatomic) double height;
@property (nonatomic) int blurStyle;
@property (nonatomic) VB9GestureType gestureType;
@property (nonatomic) CGFloat statusBrightness;
@property (nonatomic, strong) UIColor *color;
@property (nonatomic) BOOL sliderColorEnabled;
@property (nonatomic, strong) UIColor *minColor;
@property (nonatomic, strong) UIColor *maxColor;
@property (nonatomic, strong) CompletionBlock completion;
-(void)resetTimer;
-(void)_swipeHandler:(UISwipeGestureRecognizer *)recognizer;
-(void)adjustViewsForOrientation:(UIInterfaceOrientation)orientation animated:(BOOL)animateOrient;
-(void)_calculateRender;
-(void)_createHUD;
-(void)_addGestureToView:(UIView *)view;
-(void)_showHUD;
-(void)_hideHUD;
-(void)loadHUDView:(id)view orientation:(UIInterfaceOrientation)orientation;
@end