-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCLSegmentedView.h
executable file
·81 lines (64 loc) · 1.65 KB
/
CLSegmentedView.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
//
// CLSegmentedView.h
// Cascade
//
// Created by Emil Wojtaszek on 11-04-24.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "CLGlobal.h"
@interface CLSegmentedView : UIView {
CLViewSize _viewSize;
UIView* _headerView;
UIView* _footerView;
UIView* _contentView;
UIView* _roundedCornersView;
CGFloat _shadowWidth;
CGFloat _shadowOffset;
UIView* _shadowView;
BOOL _showRoundedCorners;
UIRectCorner _rectCorner;
}
/*
* Header view - located on the top of view
*/
@property (nonatomic, strong) IBOutlet UIView* headerView;
/*
* Footer view - located on the bottom of view
*/
@property (nonatomic, strong) IBOutlet UIView* footerView;
/*
* Content view - located between header and footer view
*/
@property (nonatomic, strong) IBOutlet UIView* contentView;
/*
* The width of the shadow
*/
@property (nonatomic, assign) CGFloat shadowWidth;
/*
* The offset of the shadow in X-axis. Default 0.0
*/
@property (nonatomic, assign) CGFloat shadowOffset;
/*
* Set YES if you want rounded corners. Default NO.
*/
@property (nonatomic, assign) BOOL showRoundedCorners;
/*
* Type of rect corners. Default UIRectCornerAllCorners.
*/
@property (nonatomic, assign) UIRectCorner rectCorner;
/*
* Size of view
*/
@property (nonatomic, assign, readonly) CLViewSize viewSize;
- (id) initWithSize:(CLViewSize)size;
/*
* This methoad add left outer shadow view with proper width
*/
- (void) addLeftBorderShadowView:(UIView *)view withWidth:(CGFloat)width;
/*
* This methoad remove left outer shadow
*/
- (void) removeLeftBorderShadowView;
@end