mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Add customPlacementConstraints
This commit is contained in:
parent
2576fbd215
commit
bf302d3a12
2 changed files with 9 additions and 2 deletions
|
@ -118,6 +118,7 @@ APPKIT_EXPORT const CGFloat NSGridViewSizeForContent;
|
|||
id _mergeHead;
|
||||
NSGridRow *_owningRow;
|
||||
NSGridColumn *_owningColumn;
|
||||
NSArray *_customPlacementConstraints;
|
||||
}
|
||||
|
||||
- (NSView *) contentView;
|
||||
|
@ -139,7 +140,7 @@ APPKIT_EXPORT const CGFloat NSGridViewSizeForContent;
|
|||
|
||||
// Constraints
|
||||
- (NSArray *) customPlacementConstraints;
|
||||
|
||||
- (void) setCustomPlacementConstraints: (NSArray *)constraints;
|
||||
@end
|
||||
|
||||
/// Column
|
||||
|
|
|
@ -841,7 +841,12 @@
|
|||
// Constraints
|
||||
- (NSArray *) customPlacementConstraints
|
||||
{
|
||||
return nil;
|
||||
return _customPlacementConstraints;
|
||||
}
|
||||
|
||||
- (void) setCustomPlacementConstraints: (NSArray *)constraints
|
||||
{
|
||||
ASSIGNCOPY(_customPlacementConstraints, constraints);
|
||||
}
|
||||
|
||||
// coding
|
||||
|
@ -870,6 +875,7 @@
|
|||
[coder encodeObject: _mergeHead];
|
||||
[coder encodeObject: _owningRow];
|
||||
[coder encodeObject: _owningColumn];
|
||||
[coder encodeObject: _customPlacementConstraints];
|
||||
[coder encodeValueOfObjCType:@encode(NSInteger)
|
||||
at: &_xPlacement];
|
||||
[coder encodeValueOfObjCType:@encode(NSInteger)
|
||||
|
|
Loading…
Reference in a new issue