Permalink
Browse files

Import changes from external project.

  • Loading branch information...
1 parent 52322a7 commit 09ebc2f7a4cd5122b7185bd75739652ffc7faa8b @joshaber committed Mar 7, 2011
View
@@ -0,0 +1,16 @@
+/*
+ * JAEdgeInsets.h
+ * GitHub
+ *
+ * Created by Josh Abernathy on 1/26/11.
+ * Copyright 2011 Josh Abernathy. All rights reserved.
+ *
+ */
+
+typedef struct {
+ CGFloat top, left, bottom, right;
+} JAEdgeInsets;
+
+static inline JAEdgeInsets JAEdgeInsetsMake(CGFloat top, CGFloat left, CGFloat bottom, CGFloat right) {
+ return (JAEdgeInsets) { .top = top, .left = left, .bottom = bottom, .right = right };
+}
View
@@ -7,6 +7,7 @@
//
#import <Cocoa/Cocoa.h>
+#import "JAEdgeInsets.h"
@class JAListView;
@class JAListViewItem;
@@ -35,6 +36,8 @@ extern NSString * const JAListViewDraggingPasteboardType;
- (void)listView:(JAListView *)listView willSelectView:(JAListViewItem *)view;
- (void)listView:(JAListView *)listView didSelectView:(JAListViewItem *)view;
- (void)listView:(JAListView *)listView didDeselectView:(JAListViewItem *)view;
+
+- (void)listView:(JAListView *)listView didRemoveView:(JAListViewItem *)view;
@end
@protocol JAListViewDraggingSourceDelegate <NSObject>
@@ -64,7 +67,6 @@ extern NSString * const JAListViewDraggingPasteboardType;
NSPoint margin;
CGFloat *cachedLocations;
__weak JAListViewItem *viewBeingSelected;
- JAListViewItem *viewBeingUsedForInertialScroll;
NSColor *backgroundColor;
BOOL isResizingManually;
BOOL conditionallyUseLayerBacking;
@@ -116,6 +118,10 @@ extern NSString * const JAListViewDraggingPasteboardType;
*/
- (void)deselectAllViews;
+- (void)markViewBeingUsedForInertialScrolling:(JAListViewItem *)newView;
+- (void)unmarkViewBeingUsedForInertialScrolling:(JAListViewItem *)view;
+- (void)clearViewsBeingUsedForInertialScrolling;
+
@property (nonatomic, readonly) NSScrollView *scrollView;
@property (nonatomic, assign) IBOutlet id<JAListViewDataSource> dataSource;
@property (nonatomic, assign) IBOutlet id<JAListViewDelegate> delegate;
@@ -124,7 +130,7 @@ extern NSString * const JAListViewDraggingPasteboardType;
@property (nonatomic, assign) BOOL canCallDataSourceInParallel;
@property (nonatomic, readonly) NSArray *visibleViews;
@property (nonatomic, assign) NSPoint margin;
-@property (nonatomic, retain) JAListViewItem *viewBeingUsedForInertialScroll;
+@property (nonatomic, assign) JAEdgeInsets padding;
@property (nonatomic, retain) NSColor *backgroundColor;
@property (nonatomic, readonly) CGFloat heightForAllContent;
@property (nonatomic, assign) BOOL conditionallyUseLayerBacking;
Oops, something went wrong.

0 comments on commit 09ebc2f

Please sign in to comment.