This repository has been archived by the owner on Jan 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
UXTableViewCell.h
69 lines (51 loc) · 2.15 KB
/
UXTableViewCell.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// UXKit headers, derived from reverse engineering by Adam Demasi (@kirb)
// This is free and unencumbered software released into the public domain. Refer to LICENSE.md.
#import "UXCollectionViewCell.h"
typedef NS_ENUM(NSInteger, UXTableViewCellStyle) {
UXTableViewCellStyleDefault,
UXTableViewCellStyleValue1,
UXTableViewCellStyleValue2,
UXTableViewCellStyleSubtitle
};
typedef NS_ENUM(NSInteger, UXTableViewCellAccessoryType) {
UXTableViewCellAccessoryNone,
UXTableViewCellAccessoryDisclosureIndicator,
UXTableViewCellAccessoryDetailDisclosureButton,
UXTableViewCellAccessoryCheckmark,
UXTableViewCellAccessoryDetailButton
};
typedef NS_ENUM(NSInteger, UXTableViewCellEditingStyle) {
UXTableViewCellEditingStyleNone,
UXTableViewCellEditingStyleDelete,
UXTableViewCellEditingStyleInsert
};
typedef NS_ENUM(NSInteger, UXTableViewCellSelectionStyle) {
UXTableViewCellSelectionStyleNone,
UXTableViewCellSelectionStyleBlue,
UXTableViewCellSelectionStyleGray,
UXTableViewCellSelectionStyleDefault
};
typedef NS_ENUM(NSInteger, UXTableViewCellSeparatorStyle) {
UXTableViewCellSeparatorStyleNone,
UXTableViewCellSeparatorStyleSingleLine,
UXTableViewCellSeparatorStyleSingleLineEtched
};
@class UXLabel;
@interface UXTableViewCell : UXCollectionViewCell
- (instancetype)initWithStyle:(UXTableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier;
- (void)prepareForReuse;
@property (nonatomic) UXTableViewCellStyle style;
@property (nonatomic, getter=isHighlighted) BOOL highlighted;
@property (nonatomic, getter=isSelected) BOOL selected;
@property (retain, nonatomic) UXLabel *textLabel;
@property (retain, nonatomic) UXLabel *detailTextLabel;
@property (retain, nonatomic) UXView *accessoryView;
@property (nonatomic) UXTableViewCellAccessoryType accessoryType;
@property (nonatomic) CGFloat indentationWidth;
@property (nonatomic) NSInteger indentationLevel;
@property (nonatomic) NSEdgeInsets separatorInset;
@property (nonatomic) UXTableViewCellSelectionStyle selectionStyle;
@property (retain, nonatomic) NSColor *highlightColor;
@property (retain, nonatomic) UXView *backgroundView;
@property (retain, nonatomic) UXView *selectedBackgroundView;
@end