//
//  NSCollectionView.h
//  AppKit
//
//  Created by Fabian Spillner on 06.11.07.
//  Copyright 2007 Golden Delicious Computers GmbH&Co. KG. All rights reserved.
//

#import <AppKit/NSView.h>

@class NSCollectionViewItem; 

@interface NSCollectionView : NSView <NSCoding> {
	BOOL _allowsMultipleSelection;
	NSArray *_backgroundColors;
	NSArray *_content;
	BOOL _firstResponder;
	BOOL _selectable;
	NSCollectionViewItem *_itemPrototype;
	NSSize _maxItemSize;
	NSSize _minItemSize;
	NSUInteger _maxNumberOfColumns;
	NSUInteger _maxNumberOfRows;
	NSIndexSet *_selectionIndexes;
}

- (BOOL) allowsMultipleSelection; 
- (NSArray *) backgroundColors; 
- (NSArray *) content; 
- (BOOL) isFirstResponder; 
- (BOOL) isSelectable; 
- (NSCollectionViewItem *) itemPrototype; 
- (NSSize) maxItemSize; 
- (NSUInteger) maxNumberOfColumns; 
- (NSUInteger) maxNumberOfRows; 
- (NSSize) minItemSize; 
- (NSCollectionViewItem *) newItemForRepresentedObject:(id) obj; 
- (NSIndexSet *) selectionIndexes; 
- (void) setAllowsMultipleSelection:(BOOL) flag; 
- (void) setBackgroundColors:(NSArray *) bgColors; 
- (void) setContent:(NSArray *) newContent; 
- (void) setItemPrototype:(NSCollectionViewItem *) itemPrototype; 
- (void) setMaxItemSize:(NSSize) size; 
- (void) setMaxNumberOfColumns:(NSUInteger) num; 
- (void) setMaxNumberOfRows:(NSUInteger) num; 
- (void) setMinItemSize:(NSSize) size; 
- (void) setSelectable:(BOOL) flag; 
- (void) setSelectionIndexes:(NSIndexSet *) ids; 
- (void)_computeTargetGridGeometry;

@end
