/
PXShadow.h
52 lines (42 loc) · 1.02 KB
/
PXShadow.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
//
// PXShadow.h
// PXEngine
//
// Created by Kevin Lindsey on 8/31/12.
// Copyright (c) 2012 Pixate, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <PXEngine/PXShadowPaint.h>
/**
* PXShadow is used to capture all settings needed to render a box shadow.
*/
@interface PXShadow : NSObject <PXShadowPaint>
/**
* A flag indicating whether the shadow should be applied inside or outside of the contour being shadowed
*/
@property (nonatomic) BOOL inset;
/**
* The x-displacement for the shadow
*/
@property (nonatomic) CGFloat horizontalOffset;
/**
* The y-displacment for the shadow
*/
@property (nonatomic) CGFloat verticalOffset;
/**
* The blur amount for the shadow
*/
@property (nonatomic) CGFloat blurDistance;
/**
* The spread amount of the blur
*/
@property (nonatomic) CGFloat spreadDistance;
/**
* The color of the shadow
*/
@property (nonatomic, strong) UIColor *color;
/**
* The blend mode to use when applying this shadow
*/
@property (nonatomic) CGBlendMode blendMode;
@end