Forward declare the scrubber layout
This commit is contained in:
parent
98eee28cbc
commit
bb997c2ea4
1 changed files with 10 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
@class NSTouchBar, NSTouchBarItem;
|
@class NSTouchBar, NSTouchBarItem;
|
||||||
@class NSScrubber, NSScrubberItemView, NSScrubberArrangedView, NSScrubberTextItemView, NSScrubberImageItemView, NSScrubberSelectionStyle;
|
@class NSScrubber, NSScrubberItemView, NSScrubberArrangedView, NSScrubberTextItemView, NSScrubberImageItemView, NSScrubberSelectionStyle;
|
||||||
@protocol NSTouchBarDelegate, NSScrubberDelegate, NSScrubberDataSource;
|
@protocol NSTouchBarDelegate, NSScrubberDelegate, NSScrubberDataSource, NSScrubberFlowLayoutDelegate, NSScrubberFlowLayout;
|
||||||
|
|
||||||
typedef float NSTouchBarItemPriority;
|
typedef float NSTouchBarItemPriority;
|
||||||
static const NSTouchBarItemPriority NSTouchBarItemPriorityHigh = 1000;
|
static const NSTouchBarItemPriority NSTouchBarItemPriorityHigh = 1000;
|
||||||
|
@ -149,6 +149,9 @@ static const NSTouchBarItemIdentifier NSTouchBarItemIdentifierOtherItemsProxy =
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface NSScrubberFlowLayout: NSObject
|
||||||
|
@end
|
||||||
|
|
||||||
@interface NSScrubberSelectionStyle : NSObject<NSCoding>
|
@interface NSScrubberSelectionStyle : NSObject<NSCoding>
|
||||||
|
|
||||||
@property(class, strong, readonly) NSScrubberSelectionStyle* outlineOverlayStyle;
|
@property(class, strong, readonly) NSScrubberSelectionStyle* outlineOverlayStyle;
|
||||||
|
@ -229,6 +232,12 @@ static const NSTouchBarItemIdentifier NSTouchBarItemIdentifierOtherItemsProxy =
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@protocol NSScrubberFlowLayoutDelegate<NSObject>
|
||||||
|
|
||||||
|
- (NSSize)scrubber:(NSScrubber *)scrubber layout:(NSScrubberFlowLayout *)layout sizeForItemAtIndex:(NSInteger)itemIndex;
|
||||||
|
|
||||||
|
@end
|
||||||
|
|
||||||
#pragma clang assume_nonnull end
|
#pragma clang assume_nonnull end
|
||||||
|
|
||||||
#elif MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12_1
|
#elif MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12_1
|
||||||
|
|
Loading…
Reference in a new issue