LuxChat  2.0
Instant messenger for iOS
JSBadgeView.h
1 /*
2 Copyright (c) 2013 Javier Soto.
3 
4 Permission is hereby granted, free of charge, to any person obtaining a copy
5 of this software and associated documentation files (the "Software"), to deal
6 in the Software without restriction, including without limitation the rights
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 copies of the Software, and to permit persons to whom the Software is
9 furnished to do so, subject to the following conditions:
10 
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
13 
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 THE SOFTWARE.
21 */
22 
23 #import <UIKit/UIKit.h>
24 
25 typedef NS_ENUM(NSUInteger, JSBadgeViewAlignment)
26 {
27  JSBadgeViewAlignmentTopLeft = 1,
28  JSBadgeViewAlignmentTopRight,
29  JSBadgeViewAlignmentTopCenter,
30  JSBadgeViewAlignmentCenterLeft,
31  JSBadgeViewAlignmentCenterRight,
32  JSBadgeViewAlignmentBottomLeft,
33  JSBadgeViewAlignmentBottomRight,
34  JSBadgeViewAlignmentBottomCenter,
35  JSBadgeViewAlignmentCenter
36 };
37 
38 @interface JSBadgeView : UIView
39 
40 @property (nonatomic, copy) NSString *badgeText;
41 
42 #pragma mark - Customization
43 
44 @property (nonatomic, assign) JSBadgeViewAlignment badgeAlignment UI_APPEARANCE_SELECTOR;
45 
46 @property (nonatomic, strong) UIColor *badgeTextColor UI_APPEARANCE_SELECTOR;
47 @property (nonatomic, assign) CGSize badgeTextShadowOffset UI_APPEARANCE_SELECTOR;
48 @property (nonatomic, strong) UIColor *badgeTextShadowColor UI_APPEARANCE_SELECTOR;
49 
50 @property (nonatomic, strong) UIFont *badgeTextFont UI_APPEARANCE_SELECTOR;
51 
52 @property (nonatomic, strong) UIColor *badgeBackgroundColor UI_APPEARANCE_SELECTOR;
53 
57 @property (nonatomic, strong) UIColor *badgeOverlayColor UI_APPEARANCE_SELECTOR;
58 
62 @property (nonatomic, strong) UIColor *badgeShadowColor UI_APPEARANCE_SELECTOR;
63 
67 @property (nonatomic, assign) CGSize badgeShadowSize UI_APPEARANCE_SELECTOR;
68 
72 @property (nonatomic, assign) CGFloat badgeStrokeWidth UI_APPEARANCE_SELECTOR;
73 
77 @property (nonatomic, strong) UIColor *badgeStrokeColor UI_APPEARANCE_SELECTOR;
78 
82 @property (nonatomic, assign) CGPoint badgePositionAdjustment UI_APPEARANCE_SELECTOR;
83 
88 @property (nonatomic, assign) CGRect frameToPositionInRelationWith UI_APPEARANCE_SELECTOR;
89 
93 @property (nonatomic, assign) CGFloat badgeMinWidth UI_APPEARANCE_SELECTOR;
94 
98 - (id)initWithParentView:(UIView *)parentView alignment:(JSBadgeViewAlignment)alignment;
99 
100 @end
Definition: JSBadgeView.h:38
typedef NS_ENUM(NSInteger, FIRStorageTaskStatus)
Definition: FIRStorageConstants.h:69