Fix externs for collection view, correct NSFontIdentityMatrix type

This commit is contained in:
Gregory John Casamento 2022-11-28 01:55:09 -05:00
parent c8c3e9720c
commit af643cc821
4 changed files with 10 additions and 4 deletions

View file

@ -43,8 +43,8 @@ enum
};
typedef NSInteger NSCollectionViewScrollDirection;
const static NSCollectionViewSupplementaryElementKind NSCollectionElementKindSectionHeader;
const static NSCollectionViewSupplementaryElementKind NSCollectionElementKindSectionFooter;
APPKIT_EXPORT NSCollectionViewSupplementaryElementKind NSCollectionElementKindSectionHeader;
APPKIT_EXPORT NSCollectionViewSupplementaryElementKind NSCollectionElementKindSectionFooter;
APPKIT_EXPORT_CLASS
@interface NSCollectionViewFlowLayoutInvalidationContext : NSCollectionViewLayoutInvalidationContext

View file

@ -48,7 +48,7 @@ typedef NSInteger NSCollectionElementCategory;
typedef NSString *NSCollectionViewDecorationElementKind;
const static NSCollectionViewSupplementaryElementKind NSCollectionElementKindInterItemGapIndicator;
APPKIT_EXPORT NSCollectionViewSupplementaryElementKind NSCollectionElementKindInterItemGapIndicator;
@class NSCollectionViewLayoutAttributes;
@class NSCollectionView;

View file

@ -74,7 +74,7 @@ typedef enum _NSFontRenderingMode
} NSFontRenderingMode;
#endif
APPKIT_EXPORT const CGFloat *NSFontIdentityMatrix;
APPKIT_EXPORT const CGFloat NSFontIdentityMatrix[6];
APPKIT_EXPORT_CLASS
@interface NSFont : NSObject <NSCoding, NSCopying>

View file

@ -36,6 +36,7 @@
#import "AppKit/NSAppearance.h"
#import "AppKit/NSFontCollection.h"
#import "AppKit/NSTextFinder.h"
#import "AppKit/NSCollectionView.h"
// Global strings
APPKIT_DECLARE APPKIT_DECLARE NSString *NSModalPanelRunLoopMode = @"NSModalPanelRunLoopMode";
@ -778,6 +779,11 @@ APPKIT_DECLARE NSPasteboardTypeTextFinderOptionKey const NSTextFinderMatchingTyp
APPKIT_DECLARE CGFloat const NSGridViewSizeForContent = 0.0;
// NSCollectionView constants
APPKIT_DECLARE NSCollectionViewSupplementaryElementKind const NSCollectionElementKindInterItemGapIndicator = @"NSCollectionElementKindInterItemGapIndicator";
APPKIT_DECLARE NSCollectionViewSupplementaryElementKind const NSCollectionElementKindSectionHeader = @"UICollectionElementKindSectionHeader";
APPKIT_DECLARE NSCollectionViewSupplementaryElementKind const NSCollectionElementKindSectionFooter = @"UICollectionElementKindSectionFooter";
extern void __objc_gui_force_linking (void);
void