Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 79 lines (59 sloc) 1.803 kb
23908e5a » soffes
2009-10-27 Replaced TWStripView with TWGradientView
1 //
f3d43b66 » soffes
2010-08-19 The Great Rename
2 // SSGradientView.h
3 // SSToolkit
23908e5a » soffes
2009-10-27 Replaced TWStripView with TWGradientView
4 //
5 // Created by Sam Soffes on 10/27/09.
e8c3ce32 » soffes
2011-03-27 Updated comments and renamed SSDrawingMacros to SSDrawingUtilities
6 // Copyright 2009-2011 Sam Soffes. All rights reserved.
23908e5a » soffes
2009-10-27 Replaced TWStripView with TWGradientView
7 //
ea32379e » soffes
2011-06-20 Switched SSGradientView back to CGGradient and kept support for multi…
8
68080b59 » soffes
2011-09-01 Renamed SSBordererView to SSBorderedView. That typeo has been there a…
9 #import "SSBorderedView.h"
23908e5a » soffes
2009-10-27 Replaced TWStripView with TWGradientView
10
f63bf11e » soffes
2011-07-10 More documentation
11 /**
12 The direction the gradient.
13 */
83921058 » soffes
2011-07-01 Support horizontal gradients in SSGradientView. Fixes #13
14 typedef enum {
f63bf11e » soffes
2011-07-10 More documentation
15 /** The gradient is horizontal. */
83921058 » soffes
2011-07-01 Support horizontal gradients in SSGradientView. Fixes #13
16 SSGradientViewDirectionHorizontal,
f63bf11e » soffes
2011-07-10 More documentation
17
18 /** The gradient is verticle. */
83921058 » soffes
2011-07-01 Support horizontal gradients in SSGradientView. Fixes #13
19 SSGradientViewDirectionVertical
20 } SSGradientViewDirection;
21
072f882d » soffes
2011-07-08 More documentation. #24 #25
22 /**
23 Simple `UIView` wrapper for `CGGradient`.
24 */
454e654c » soffes
2011-10-08 Require Apple LLVM compiler 3.0
25 @interface SSGradientView : SSBorderedView
23908e5a » soffes
2009-10-27 Replaced TWStripView with TWGradientView
26
bf2d0ec6 » soffes
2011-07-03 Started overhauling documentation
27 ///---------------------------
28 /// @name Drawing the Gradient
fc1acd8e » soffes
2011-10-17 Updated documentation coding convention
29 ///---------------------------
bf2d0ec6 » soffes
2011-07-03 Started overhauling documentation
30
072f882d » soffes
2011-07-08 More documentation. #24 #25
31 /**
32 An array of `UIColor` objects used to draw the gradient. If the value is `nil`, the `backgroundColor` will be drawn
33 instead of a gradient.
bf2d0ec6 » soffes
2011-07-03 Started overhauling documentation
34
35 The default is `nil`.
7bb26914 » soffes
2010-11-07 * Removed SSKeychain
36 */
b22f774c » soffes
2011-06-16 Converted SSGradient view to use CAGradientLayer instead of CGGradien…
37 @property (nonatomic, copy) NSArray *colors;
7bb26914 » soffes
2010-11-07 * Removed SSKeychain
38
072f882d » soffes
2011-07-08 More documentation. #24 #25
39 /**
40 An optional array of `NSNumber` objects defining the location of each gradient stop.
b22f774c » soffes
2011-06-16 Converted SSGradient view to use CAGradientLayer instead of CGGradien…
41
bf2d0ec6 » soffes
2011-07-03 Started overhauling documentation
42 The gradient stops are specified as values between `0` and `1`. The values must be monotonically
43 increasing. If `nil`, the stops are spread uniformly across the range. Defaults to `nil`.
7bb26914 » soffes
2010-11-07 * Removed SSKeychain
44 */
b22f774c » soffes
2011-06-16 Converted SSGradient view to use CAGradientLayer instead of CGGradien…
45 @property (nonatomic, copy) NSArray *locations;
7bb26914 » soffes
2010-11-07 * Removed SSKeychain
46
072f882d » soffes
2011-07-08 More documentation. #24 #25
47 /**
48 The direction of the gradient.
83921058 » soffes
2011-07-01 Support horizontal gradients in SSGradientView. Fixes #13
49
bbcba7bd » soffes
2011-11-03 Fixed a typeo in SSGradientView documentation
50 The default is `SSGradientViewDirectionVertical`.
83921058 » soffes
2011-07-01 Support horizontal gradients in SSGradientView. Fixes #13
51 */
52 @property (nonatomic, assign) SSGradientViewDirection direction;
53
fc1acd8e » soffes
2011-10-17 Updated documentation coding convention
54
bf2d0ec6 » soffes
2011-07-03 Started overhauling documentation
55 ///-------------------------
56 /// @name Deprecated Methods
57 ///-------------------------
b22f774c » soffes
2011-06-16 Converted SSGradient view to use CAGradientLayer instead of CGGradien…
58
072f882d » soffes
2011-07-08 More documentation. #24 #25
59 /**
60 The top gradient color. This method is deprecated.
bf2d0ec6 » soffes
2011-07-03 Started overhauling documentation
61
62 The default is `nil`.
b22f774c » soffes
2011-06-16 Converted SSGradient view to use CAGradientLayer instead of CGGradien…
63 */
df98fabd » soffes
2012-05-25 Use strong and unsafe_unretained in properties
64 @property (nonatomic, strong) UIColor *topColor;
b22f774c » soffes
2011-06-16 Converted SSGradient view to use CAGradientLayer instead of CGGradien…
65
072f882d » soffes
2011-07-08 More documentation. #24 #25
66 /**
67 The bottom gradient color. This method is deprecated.
bf2d0ec6 » soffes
2011-07-03 Started overhauling documentation
68
69 The default is `nil`.
b22f774c » soffes
2011-06-16 Converted SSGradient view to use CAGradientLayer instead of CGGradien…
70 */
df98fabd » soffes
2012-05-25 Use strong and unsafe_unretained in properties
71 @property (nonatomic, strong) UIColor *bottomColor;
7bb26914 » soffes
2010-11-07 * Removed SSKeychain
72
bf2d0ec6 » soffes
2011-07-03 Started overhauling documentation
73 /** The scale of the gradient. This method is deprecated.
45ae51e5 » soffes
2011-02-14 * Added `gradientScale` to SSGradientView
74
bf2d0ec6 » soffes
2011-07-03 Started overhauling documentation
75 The default is `1.0`.
45ae51e5 » soffes
2011-02-14 * Added `gradientScale` to SSGradientView
76 */
ea32379e » soffes
2011-06-20 Switched SSGradientView back to CGGradient and kept support for multi…
77 @property (nonatomic, assign) CGFloat gradientScale;
45ae51e5 » soffes
2011-02-14 * Added `gradientScale` to SSGradientView
78
23908e5a » soffes
2009-10-27 Replaced TWStripView with TWGradientView
79 @end
Something went wrong with that request. Please try again.