mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
Encode all information for the grid layout
This commit is contained in:
parent
dade8c4068
commit
f7730c97d3
1 changed files with 27 additions and 0 deletions
|
@ -88,6 +88,33 @@
|
|||
|
||||
- (void) encodeWithCoder: (NSCoder *)coder
|
||||
{
|
||||
if ([coder allowsKeyedCoding])
|
||||
{
|
||||
[coder encodeInteger: _maximumNumberOfRows
|
||||
forKey: @"NSMaximumNumberOfRows"];
|
||||
[coder encodeInteger: _maximumNumberOfColumns
|
||||
forKey: @"NSMaximumNumberOfColumns"];
|
||||
|
||||
[coder encodeSize: _maximumItemSize
|
||||
forKey: @"NSMaximumItemSize"];
|
||||
[coder encodeSize: _minimumItemSize
|
||||
forKey: @"NSMinimumItemSize"];
|
||||
|
||||
[coder encodeFloat: _minimumInteritemSpacing
|
||||
forKey: @"NSMinimumInteritemSpacing"];
|
||||
|
||||
[coder encodeFloat: _margins.bottom
|
||||
forKey: @"NSCollectionViewGridLayoutMargins.bottom"];
|
||||
[coder encodeFloat: _margins.top
|
||||
forKey: @"NSCollectionViewGridLayoutMargins.top"];
|
||||
[coder encodeFloat: _margins.left
|
||||
forKey: @"NSCollectionViewGridLayoutMargins.left"];
|
||||
[coder encodeFloat: _margins.right
|
||||
forKey: @"NSCollectionViewGridLayoutMargins.right"];
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
- (void) setMaximumNumberOfRows: (NSUInteger)maxRows
|
||||
|
|
Loading…
Reference in a new issue