//
//  GSPrintGridView.h
//  GlyphsTests
//
//  Created by Georg Seifert on 05.07.10.
//  Copyright 2010 schriftgestaltung.de. All rights reserved.
//

#import <GlyphsCore/GSGeometryHelpers.h>

@class GSFont;

@interface GSPrintGridView : NSControl

@property (strong, nonatomic) GSFont *representedObject;
@property (strong, nonatomic) NSArray *glyphs;
@property NSUInteger masterIndex;

@property (strong, nonatomic) NSArray *content;
@property (strong, nonatomic) NSIndexSet *selectionIndexes;
@property (nonatomic) BOOL allowsEmptySelection;
@property (nonatomic) BOOL allowsMultipleSelection;

@property (nonatomic) NSSize cellSize;

@property (nonatomic) BOOL fitCellWidthToFrame;

- (NSRect)frameForItem:(NSInteger)item;

- (NSInteger)itemAtPoint:(NSPoint)thePoint;

- (NSRect)frameForItemAtPoint:(NSPoint)thePoint;

- (NSInteger)numberOfItems;

@end
