Update NSCollectionView*.h headers to export symbols properly on Windows

This commit is contained in:
Gregory John Casamento 2022-10-10 16:02:18 -04:00
parent 9b56fe8df0
commit fa820398d9
5 changed files with 19 additions and 4 deletions

View file

@ -26,13 +26,15 @@
#define _NSCollectionViewCompositionalLayout_h_GNUSTEP_GUI_INCLUDE
#import <AppKit/NSCollectionViewLayout.h>
#import <AppKit/AppKitDefines.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
#if OS_API_VERSION(MAC_OS_X_VERSION_10_11, GS_API_LATEST)
#if defined(__cplusplus)
extern "C" {
#endif
APPKIT_EXPORT_CLASS
@interface NSCollectionViewCompositionalLayout : NSCollectionViewLayout
@end

View file

@ -27,6 +27,7 @@
#import <AppKit/NSCollectionView.h>
#import <AppKit/NSCollectionViewLayout.h>
#import <AppKit/AppKitDefines.h>
@class NSMutableIndexSet;
@ -46,6 +47,7 @@ typedef NSInteger NSCollectionViewScrollDirection;
NSCollectionViewSupplementaryElementKind const NSCollectionElementKindSectionHeader;
NSCollectionViewSupplementaryElementKind const NSCollectionElementKindSectionFooter;
APPKIT_EXPORT_CLASS
@interface NSCollectionViewFlowLayoutInvalidationContext : NSCollectionViewLayoutInvalidationContext
{
BOOL _invalidateFlowLayoutDelegateMetrics;
@ -87,6 +89,7 @@ NSCollectionViewSupplementaryElementKind const NSCollectionElementKindSectionFoo
@end
APPKIT_EXPORT_CLASS
@interface NSCollectionViewFlowLayout : NSCollectionViewLayout
{
CGFloat _minimumLineSpacing;

View file

@ -25,15 +25,17 @@
#ifndef _NSCollectionViewGridLayout_h_GNUSTEP_GUI_INCLUDE
#define _NSCollectionViewGridLayout_h_GNUSTEP_GUI_INCLUDE
#import <AppKit/NSCollectionViewLayout.h>
#import <Foundation/NSGeometry.h>
#import <AppKit/NSCollectionViewLayout.h>
#import <AppKit/AppKitDefines.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_0, GS_API_LATEST)
#if OS_API_VERSION(MAC_OS_X_VERSION_10_11, GS_API_LATEST)
#if defined(__cplusplus)
extern "C" {
#endif
APPKIT_EXPORT_CLASS
@interface NSCollectionViewGridLayout : NSCollectionViewLayout
{
NSUInteger _maximumNumberOfRows;

View file

@ -29,6 +29,7 @@
#import <Foundation/NSGeometry.h>
#import <AppKit/NSCollectionView.h>
#import <AppKit/AppKitDefines.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_11, GS_API_LATEST)
@ -57,6 +58,7 @@ NSCollectionViewSupplementaryElementKind NSCollectionElementKindInterItemGapIndi
@class NSNib;
@class NSSet;
APPKIT_EXPORT_CLASS
@interface NSCollectionViewLayoutAttributes : NSObject <NSCopying>
{
NSRect _frame;
@ -111,6 +113,7 @@ enum
};
typedef NSInteger NSCollectionUpdateAction;
APPKIT_EXPORT_CLASS
@interface NSCollectionViewUpdateItem : NSObject
{
NSIndexPath *_indexPathBeforeUpdate;
@ -124,7 +127,7 @@ typedef NSInteger NSCollectionUpdateAction;
@end
APPKIT_EXPORT_CLASS
@interface NSCollectionViewLayoutInvalidationContext : NSObject
{
NSPoint _contentOffsetAdjustment;
@ -158,6 +161,7 @@ typedef NSInteger NSCollectionUpdateAction;
@end
APPKIT_EXPORT_CLASS
@interface NSCollectionViewLayout : NSObject <NSCoding>
{
NSCollectionView *_collectionView; // weak
@ -183,6 +187,7 @@ typedef NSInteger NSCollectionUpdateAction;
@end
APPKIT_EXPORT_CLASS
@interface NSCollectionViewLayout (NSSubclassingHooks)
// Methods to override for specific layouts...
@ -218,6 +223,7 @@ typedef NSInteger NSCollectionUpdateAction;
@end
APPKIT_EXPORT_CLASS
@interface NSCollectionViewLayout (NSUpdateSupportHooks)
// Update support

View file

@ -26,6 +26,7 @@
#define _NSCollectionViewTransitionLayout_h_GNUSTEP_GUI_INCLUDE
#import <AppKit/NSCollectionViewLayout.h>
#import <AppKit/AppKitDefines.h>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_11, GS_API_LATEST)
@ -35,6 +36,7 @@ extern "C" {
typedef NSString* NSCollectionViewTransitionLayoutAnimatedKey;
APPKIT_EXPORT_CLASS
@interface NSCollectionViewTransitionLayout : NSCollectionViewLayout
{
CGFloat _transitionProgress;