mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 17:01:00 +00:00
Add implementation of setters and getters in NSCollectionViewGridLayout
This commit is contained in:
parent
7d46f9f69a
commit
35e0e62144
3 changed files with 198 additions and 3 deletions
|
@ -26,6 +26,7 @@
|
|||
#define _NSCollectionViewGridLayout_h_GNUSTEP_GUI_INCLUDE
|
||||
|
||||
#import <AppKit/NSCollectionViewLayout.h>
|
||||
#import <Foundation/NSGeometry.h>
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
|
||||
|
||||
|
@ -34,7 +35,34 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
@interface NSCollectionViewGridLayout : NSCollectionViewLayout
|
||||
{
|
||||
NSUInteger _maximumNumberOfRows;
|
||||
NSUInteger _maximumNumberOfColumns;
|
||||
NSSize _minimumItemSize;
|
||||
NSSize _maximumItemSize;
|
||||
NSEdgeInsets _margins;
|
||||
CGFloat _minimumInteritemSpacing;
|
||||
}
|
||||
|
||||
- (void) setMaximumNumberOfRows: (NSUInteger)maxRows;
|
||||
- (NSUInteger) maximumNumberOfRows;
|
||||
|
||||
- (void) setMaximumNumberOfColumns: (NSUInteger)maxCols;
|
||||
- (NSUInteger) maximumNumberOfColumns;
|
||||
|
||||
- (void) setMinimumItemSize: (NSSize)minSize;
|
||||
- (NSSize) minimumItemSize;
|
||||
|
||||
- (void) setMaximumItemSize: (NSSize)maxSize;
|
||||
- (NSSize) maximumItemSize;;
|
||||
|
||||
- (void) setMargins: (NSEdgeInsets)insets;
|
||||
- (NSEdgeInsets) margins;
|
||||
|
||||
- (void) setMinimumInteritemSpacing: (CGFloat)spacing;
|
||||
- (CGFloat) minimumInteritemSpacing;
|
||||
|
||||
|
||||
@end
|
||||
|
||||
#if defined(__cplusplus)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue