More implementation of NSGridView

This commit is contained in:
Gregory John Casamento 2020-08-23 00:57:29 -04:00
parent 31432274a6
commit dbd46a5839
3 changed files with 33 additions and 11 deletions

View file

@ -56,15 +56,18 @@ typedef NSInteger NSGridRowAlignment;
APPKIT_EXPORT const CGFloat NSGridViewSizeForContent;
@class NSGridColumn, NSGridRow, NSGridCell;
@class NSGridColumn, NSGridRow, NSGridCell, NSArray, NSMutableArray;
@interface NSGridView : NSView
{
NSMutableArray *_rows;
}
- (instancetype) initWithFrame: (NSRect)frameRect;
- (instancetype) initWithCoder: (NSCoder *)coder;
+ (instancetype) gridViewWithNumberOfColumns: (NSInteger)columnCount rows: (NSInteger)rowCount;
+ (instancetype) gridViewWithViews: (NSArray *)rows; // an array containing an array of NSViews
+ (instancetype) gridViewWithViews: (NSArray *)rows; // an NSArray containing an NSArray of NSViews
- (NSInteger) numberOfRows;
- (NSInteger) numberOfColumns;