//
//  AppKit-Future.h
//  GlyphsCore
//
//  Created by Georg Seifert on 18.07.18.
//  Copyright © 2018 schriftgestaltung.de. All rights reserved.
//

#ifndef NSControlSizeExtraLarge
	#define NSControlSizeExtraLarge ((NSControlSize)4)
#endif

#if !TARGET_OS_IOS
@interface NSApplication (Future)

- (void)loadCompatibility;

@end

#if NSFoundationVersionNumber < 1545

@interface NSView (Future)

@property BOOL clipsToBounds;

@end

#endif

#if NSFoundationVersionNumber < 2000  // Ventura

void CGContextDrawConicGradient(CGContextRef c, CGGradientRef gradient, CGPoint center, CGFloat angle);

@interface NSMenuItem (Future)

+ (instancetype)sectionHeaderWithTitle:(NSString *) title;

@end

@interface NSSplitViewItem (Future)

@property BOOL automaticallyAdjustsSafeAreaInsets;

@end

#if !__has_include(<AppKit/NSGlassEffectView.h>)
API_AVAILABLE(macos(26.0))

@interface NSGlassEffectView : NSView

@property (strong) NSColor *tintColor;

@property (strong) NSView *contentView;

@end

@interface NSGlassEffectContainerView : NSView

@property (strong) NSView *contentView;

@end

#endif

#endif
#endif
