diff --git a/JAListView.h b/JAListView.h index 94caa70..126deac 100644 --- a/JAListView.h +++ b/JAListView.h @@ -56,20 +56,28 @@ extern NSString * const JAListViewDraggingPasteboardType; @interface JAListView : NSView { - NSMutableArray *cachedViews; - NSArray *cachedVisibleViews; - CGFloat heightForAllContent; - id dataSource; - id delegate; - id draggingSourceDelegate; - id draggingDestinationDelegate; - BOOL canCallDataSourceInParallel; - NSPoint margin; - CGFloat *cachedLocations; - __weak JAListViewItem *viewBeingSelected; - NSColor *backgroundColor; - BOOL isResizingManually; - BOOL conditionallyUseLayerBacking; +@private + NSMutableArray *cachedViews; + NSArray *cachedVisibleViews; + CGFloat heightForAllContent; + id dataSource; + id delegate; + id draggingSourceDelegate; + id draggingDestinationDelegate; + BOOL canCallDataSourceInParallel; + NSPoint margin; + CGFloat *cachedLocations; + __weak JAListViewItem *viewBeingSelected; + NSColor *backgroundColor; + BOOL isResizingManually; + BOOL conditionallyUseLayerBacking; + JAEdgeInsets padding; + NSMutableArray *currentlySelectedViews; + NSTrackingArea *currentTrackingArea; + void (^currentAnimationBlock)(NSView *newSuperview, NSArray *viewsToAdd, NSArray *viewsToRemove, NSArray *viewsToMove); + NSMutableArray *viewsBeingUsedForInertialScrolling; + NSUInteger minIndexForReLayout; + BOOL allowNoSelection; } - (void)setup; diff --git a/JAListViewItem.h b/JAListViewItem.h index 2b31107..cb2cf0c 100644 --- a/JAListViewItem.h +++ b/JAListViewItem.h @@ -17,7 +17,15 @@ typedef enum { @class JAListView; -@interface JAListViewItem : NSView {} +@interface JAListViewItem : NSView { +@private + BOOL ignoreInListViewLayout; + JAListView *listView; + BOOL selected; + BOOL highlighted; + JAListViewPosition listViewPosition; + BOOL ignoresListViewPadding; +} - (NSImage *)draggingImage; diff --git a/JASectionedListView.h b/JASectionedListView.h index 1f84df0..299e99b 100644 --- a/JASectionedListView.h +++ b/JASectionedListView.h @@ -22,7 +22,10 @@ enum { JASectionedListViewHeaderIndex = NSUIntegerMax }; @end -@interface JASectionedListView : JAListView {} +@interface JASectionedListView : JAListView { +@private + id sectionDataSource; +} - (NSUInteger)numberOfSections; - (NSUInteger)numberOfViewsInSection:(NSUInteger)section;