Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 64 lines (46 sloc) 1.773 kb
b940f83 @soffes Added TWLineView
soffes authored
1 //
f3d43b6 @soffes The Great Rename
soffes authored
2 // SSLineView.h
3 // SSToolkit
b940f83 @soffes Added TWLineView
soffes authored
4 //
5 // Created by Sam Soffes on 4/12/10.
e8c3ce3 @soffes Updated comments and renamed SSDrawingMacros to SSDrawingUtilities
soffes authored
6 // Copyright 2010-2011 Sam Soffes. All rights reserved.
b940f83 @soffes Added TWLineView
soffes authored
7 //
8
072f882 @soffes More documentation. #24 #25
soffes authored
9 /**
10 Don't under estimate this class. It draws lines, but they are awesome.
c31cd94 @soffes * Started documenting
soffes authored
11
bf2d0ec @soffes Started overhauling documentation
soffes authored
12 The recommended height is `2.0` points if you are using the inset and `1.0` if you are not.
c31cd94 @soffes * Started documenting
soffes authored
13
bf2d0ec @soffes Started overhauling documentation
soffes authored
14 The inset is drawn under the line if `insetColor` is not `nil`.
c31cd94 @soffes * Started documenting
soffes authored
15 */
454e654 @soffes Require Apple LLVM compiler 3.0
soffes authored
16 @interface SSLineView : UIView
b940f83 @soffes Added TWLineView
soffes authored
17
bf2d0ec @soffes Started overhauling documentation
soffes authored
18 ///--------------------
19 /// @name Drawing Lines
20 ///--------------------
21
072f882 @soffes More documentation. #24 #25
soffes authored
22 /**
23 The primary color of the line.
bf2d0ec @soffes Started overhauling documentation
soffes authored
24
25 The default is `[UIColor grayColor]`.
c31cd94 @soffes * Started documenting
soffes authored
26 */
df98fab @soffes Use strong and unsafe_unretained in properties
soffes authored
27 @property (nonatomic, strong) UIColor *lineColor;
c31cd94 @soffes * Started documenting
soffes authored
28
072f882 @soffes More documentation. #24 #25
soffes authored
29 /**
30 The color of the line inset.
bf2d0ec @soffes Started overhauling documentation
soffes authored
31
32 The default is 50% opaque white.
c31cd94 @soffes * Started documenting
soffes authored
33 */
df98fab @soffes Use strong and unsafe_unretained in properties
soffes authored
34 @property (nonatomic, strong) UIColor *insetColor;
c31cd94 @soffes * Started documenting
soffes authored
35
fc1acd8 @soffes Updated documentation coding convention
soffes authored
36
bf2d0ec @soffes Started overhauling documentation
soffes authored
37 ///---------------------
38 /// @name Drawing Dashes
39 ///---------------------
40
072f882 @soffes More documentation. #24 #25
soffes authored
41 /**
42 A float that specifies how far into the dash pattern the line starts, in points.
69eea3f @soffes Added `dashPhase` to SSLineView
soffes authored
43
44 For example, passing a value of 3 means the line is drawn with the dash pattern starting at 3 points from its
45 beginning. Passing a value of 0 draws a line starting with the beginning of a dash pattern.
46
bf2d0ec @soffes Started overhauling documentation
soffes authored
47 The default is `0.0`.
69eea3f @soffes Added `dashPhase` to SSLineView
soffes authored
48 */
49 @property (nonatomic, assign) CGFloat dashPhase;
50
072f882 @soffes More documentation. #24 #25
soffes authored
51 /**
52 An array of values that specify the lengths of the painted segments and unpainted segments, respectively, of the
bf2d0ec @soffes Started overhauling documentation
soffes authored
53 dash pattern—or `nil` for no dash pattern.
20f3394 @soffes Added the ability to make SSLineView draw a dashed or dotted line.
soffes authored
54
55 For example, passing an array with the values [2,3] sets a dash pattern that alternates between a 2 point long painted
56 segment and a 3 point long unpainted segment. Passing the values [1,3,4,2] sets the pattern to a 1 point painted
57 segment, a 3 point unpainted segment, a 4 oiunt painted segment, and a 2 point unpainted segment.
58
bf2d0ec @soffes Started overhauling documentation
soffes authored
59 The default is `nil`.
20f3394 @soffes Added the ability to make SSLineView draw a dashed or dotted line.
soffes authored
60 */
61 @property (nonatomic, copy) NSArray *dashLengths;
62
b940f83 @soffes Added TWLineView
soffes authored
63 @end
Something went wrong with that request. Please try again.