Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 57 lines (42 sloc) 1.393 kb
498b075 @camh first commit
authored
1 //
2 // CHTileView.h
3 //
8052aca @camh Changed code header information (added a line about license) and README
authored
4 // RELEASED UNDER THE MIT LICENSE
5 //
498b075 @camh first commit
authored
6 // Created by Cameron Kenly Hunt on 2/18/10.
7 // Copyright 2010 Cameron Kenley Hunt All rights reserved.
8 // http://cameron.io/project/chgridview
9 //
10
11 #import <UIKit/UIKit.h>
12
13 struct CHGridIndexPath {
14 int section;
15 int tileIndex;
16 };
17 typedef struct CHGridIndexPath CHGridIndexPath;
18
19 static CHGridIndexPath CHGridIndexPathMake(int section, int tileIndex){
20 CHGridIndexPath index; index.section = section; index.tileIndex = tileIndex; return index;
21 }
22
23 @interface CHTileView : UIView {
24 NSString *reuseIdentifier;
25 CHGridIndexPath indexPath;
26 CGSize padding;
27
28 BOOL selected;
29 BOOL highlighted;
30
9a1b26d @camh Fixed a couple bugs. Will be blank if no data source is set instead of c...
authored
31 UIColor *contentBackgroundColor;
32
498b075 @camh first commit
authored
33 CGSize shadowOffset;
34 UIColor *shadowColor;
35 CGFloat shadowBlur;
36 }
37
38 @property (nonatomic) CHGridIndexPath indexPath;
39 @property (nonatomic, readonly, copy) NSString *reuseIdentifier;
40
41 @property (nonatomic) BOOL selected;
42 @property (nonatomic) BOOL highlighted;
43
9a1b26d @camh Fixed a couple bugs. Will be blank if no data source is set instead of c...
authored
44 @property (nonatomic, retain) UIColor *contentBackgroundColor;
45
498b075 @camh first commit
authored
46 @property (nonatomic) CGSize shadowOffset;
47 @property (nonatomic, retain) UIColor *shadowColor;
48 @property (nonatomic) CGFloat shadowBlur;
49
50 - (id)initWithFrame:(CGRect)frame reuseIdentifier:(NSString *)reuseId;
51
52 // sub classes must implement drawContentRect:
53 - (void)drawContentRect:(CGRect)rect;
54 - (void)unselect;
55
56 @end
Something went wrong with that request. Please try again.