mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Minor updates and formatting change
This commit is contained in:
parent
466ebedd04
commit
b28eaac9eb
2 changed files with 9 additions and 14 deletions
|
@ -66,24 +66,24 @@ NSCollectionViewSupplementaryElementKind const NSCollectionElementKindSectionFoo
|
|||
sizeForItemAtIndexPath:(NSIndexPath *)indexPath;
|
||||
|
||||
- (NSEdgeInsets)collectionView: (NSCollectionView *)collectionView
|
||||
layout: (NSCollectionViewLayout*)collectionViewLayout
|
||||
layout: (NSCollectionViewLayout *)collectionViewLayout
|
||||
insetForSectionAtIndex: (NSInteger)section;
|
||||
|
||||
- (CGFloat) collectionView: (NSCollectionView *)collectionView
|
||||
layout: (NSCollectionViewLayout*)collectionViewLayout
|
||||
layout: (NSCollectionViewLayout *)collectionViewLayout
|
||||
minimumLineSpacingForSectionAtIndex: (NSInteger)section;
|
||||
|
||||
- (CGFloat) collectionView: (NSCollectionView *)collectionView
|
||||
layout: (NSCollectionViewLayout*)collectionViewLayout
|
||||
layout: (NSCollectionViewLayout *)collectionViewLayout
|
||||
minimumInteritemSpacingForSectionAtIndex: (NSInteger)section;
|
||||
|
||||
- (NSSize) collectionView: (NSCollectionView *)collectionView
|
||||
layout: (NSCollectionViewLayout*)collectionViewLayout
|
||||
layout: (NSCollectionViewLayout *)collectionViewLayout
|
||||
referenceSizeForHeaderInSection: (NSInteger)section;
|
||||
|
||||
- (NSSize) collectionView: (NSCollectionView *)collectionView
|
||||
layout: (NSCollectionViewLayout*)collectionViewLayout
|
||||
referenceSizeForFooterInSection:(NSInteger)section;
|
||||
layout: (NSCollectionViewLayout *)collectionViewLayout
|
||||
referenceSizeForFooterInSection: (NSInteger)section;
|
||||
|
||||
@end
|
||||
|
||||
|
|
|
@ -425,24 +425,19 @@
|
|||
mis = [self minimumInteritemSpacing];
|
||||
}
|
||||
|
||||
// Do calculations...
|
||||
// Calculations...
|
||||
h = sz.height;
|
||||
w = sz.width;
|
||||
x = (r * w) + si.left + mis;
|
||||
y = (s * h) + si.top + mls;
|
||||
f = NSMakeRect(x, y, h, w);
|
||||
|
||||
// NSLog(@"Flow layout for index path = %@", indexPath);
|
||||
|
||||
// Build attrs object...
|
||||
[attrs setFrame: f];
|
||||
[attrs setHidden: NO];
|
||||
[attrs setZIndex: 0];
|
||||
[attrs setSize: sz];
|
||||
|
||||
// NSLog(@"f = %@", NSStringFromRect(f));
|
||||
// NSLog(@"s = %@", NSStringFromSize(sz));
|
||||
// NSLog(@"self = %@", self);
|
||||
|
||||
AUTORELEASE(attrs);
|
||||
|
||||
return attrs;
|
||||
|
@ -450,7 +445,7 @@
|
|||
|
||||
- (NSCollectionViewLayoutAttributes *)
|
||||
layoutAttributesForSupplementaryViewOfKind: (NSCollectionViewSupplementaryElementKind)elementKind
|
||||
atIndexPath: (NSIndexPath *)indexPath
|
||||
atIndexPath: (NSIndexPath *)indexPath
|
||||
{
|
||||
return nil;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue