forked from TextureGroup/Texture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathASTableViewInternal.h
62 lines (51 loc) · 2.27 KB
/
ASTableViewInternal.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
//
// ASTableViewInternal.h
// Texture
//
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
// Changes after 4/13/2017 are: Copyright (c) Pinterest, Inc. All rights reserved.
// Licensed under Apache 2.0: http://www.apache.org/licenses/LICENSE-2.0
//
#import <AsyncDisplayKit/ASTableView.h>
@class ASDataController;
@class ASTableNode;
@class ASRangeController;
@interface ASTableView (Internal)
@property (nonatomic, readonly) ASDataController *dataController;
@property (nonatomic, weak) ASTableNode *tableNode;
@property (nonatomic, readonly) ASRangeController *rangeController;
/**
* Initializer.
*
* @param frame A rectangle specifying the initial location and size of the table view in its superview’s coordinates.
* The frame of the table view changes as table cells are added and deleted.
*
* @param style A constant that specifies the style of the table view. See UITableViewStyle for descriptions of valid constants.
*
* @param dataControllerClass A controller class injected to and used to create a data controller for the table view.
*/
- (instancetype)_initWithFrame:(CGRect)frame style:(UITableViewStyle)style dataControllerClass:(Class)dataControllerClass owningNode:(ASTableNode *)tableNode;
/// Set YES and we'll log every time we call [super insertRows…] etc
@property (nonatomic) BOOL test_enableSuperUpdateCallLogging;
/**
* Attempt to get the view-layer index path for the row with the given index path.
*
* @param indexPath The index path of the row.
* @param wait If the item hasn't reached the view yet, this attempts to wait for updates to commit.
*/
- (NSIndexPath *)convertIndexPathFromTableNode:(NSIndexPath *)indexPath waitingIfNeeded:(BOOL)wait;
/**
* Attempt to get the node index path given the view-layer index path.
*
* @param indexPath The index path of the row.
*/
- (NSIndexPath *)convertIndexPathToTableNode:(NSIndexPath *)indexPath;
/**
* Attempt to get the node index paths given the view-layer index paths.
*
* @param indexPaths An array of index paths in the view space
*/
- (NSArray<NSIndexPath *> *)convertIndexPathsToTableNode:(NSArray<NSIndexPath *> *)indexPaths;
/// Returns the width of the section index view on the right-hand side of the table, if one is present.
- (CGFloat)sectionIndexWidth;
@end