forked from danielctull/DTGridView
/
DTGridViewCell.h
42 lines (32 loc) · 878 Bytes
/
DTGridViewCell.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
//
// DTGridViewCell.h
// GridViewTester
//
// Created by Daniel Tull on 06.04.2009.
// Copyright 2009 Daniel Tull. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "DTGridViewCellInfoProtocol.h"
@protocol DTGridViewCellDelegate;
/*!
@class DTGridViewCell
@abstract
@discussion
*/
@interface DTGridViewCell : UIView <DTGridViewCellInfoProtocol> {
NSUInteger xPosition, yPosition;
NSString *identifier;
BOOL selected;
BOOL highlighted;
id<DTGridViewCellDelegate> delegate;
}
@property (nonatomic, assign) id delegate;
@property (nonatomic, copy) NSString *identifier;
@property (nonatomic, assign) BOOL selected;
@property (nonatomic, assign) BOOL highlighted;
- (id)initWithReuseIdentifier:(NSString *)identifier;
- (void)prepareForReuse;
@end
@protocol DTGridViewCellDelegate
-(void)gridViewCellWasTouched:(DTGridViewCell *)gridViewCell;
@end