2023-02-11 20:49:42 +00:00
|
|
|
// This file Copyright © 2022-2023 Transmission authors and contributors.
|
2022-04-24 20:34:30 +00:00
|
|
|
// It may be used under the MIT (SPDX: MIT) license.
|
|
|
|
// License text can be found in the licenses/ folder.
|
|
|
|
|
|
|
|
#import <AppKit/AppKit.h>
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
|
|
// Compatibility declarations to build `@available(macOS 11.0, *)` code with older Xcode 11.3.1 (the last 32-bit OS compatible Xcode)
|
|
|
|
#ifndef __MAC_11_0
|
|
|
|
|
2022-04-30 17:49:52 +00:00
|
|
|
typedef NS_ENUM(NSInteger, NSImageSymbolScale) {
|
2022-04-24 20:34:30 +00:00
|
|
|
NSImageSymbolScaleLarge = 3,
|
|
|
|
} API_AVAILABLE(macos(11.0));
|
|
|
|
|
|
|
|
@interface NSImage ()
|
|
|
|
+ (nullable instancetype)imageWithSystemSymbolName:(NSString*)symbolName
|
|
|
|
accessibilityDescription:(nullable NSString*)description API_AVAILABLE(macos(11.0));
|
|
|
|
@end
|
|
|
|
|
2022-04-30 17:49:52 +00:00
|
|
|
typedef NS_ENUM(NSInteger, NSWindowToolbarStyle) {
|
2022-04-24 20:34:30 +00:00
|
|
|
NSWindowToolbarStylePreference = 2,
|
2022-10-12 04:09:46 +00:00
|
|
|
NSWindowToolbarStyleUnified = 3,
|
2022-04-24 20:34:30 +00:00
|
|
|
} API_AVAILABLE(macos(11.0));
|
|
|
|
|
|
|
|
@interface NSWindow ()
|
|
|
|
@property NSWindowToolbarStyle toolbarStyle API_AVAILABLE(macos(11.0));
|
|
|
|
@end
|
|
|
|
|
2022-04-30 17:49:52 +00:00
|
|
|
typedef NS_ENUM(NSInteger, NSTableViewStyle) {
|
2022-04-24 20:34:30 +00:00
|
|
|
NSTableViewStyleFullWidth = 1,
|
|
|
|
} API_AVAILABLE(macos(11.0));
|
|
|
|
|
|
|
|
@interface NSTableView ()
|
|
|
|
@property NSTableViewStyle style API_AVAILABLE(macos(11.0));
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2023-02-27 01:11:36 +00:00
|
|
|
// Compatibility declarations to build `@available(macOS 13.0, *)` code with older Xcode 11.3.1 (the last 32-bit OS compatible Xcode)
|
|
|
|
#ifndef __MAC_13_0
|
|
|
|
|
|
|
|
typedef NS_ENUM(NSInteger, NSColorWellStyle) {
|
|
|
|
NSColorWellStyleMinimal = 1,
|
|
|
|
} API_AVAILABLE(macos(13.0));
|
|
|
|
|
|
|
|
@interface NSColorWell ()
|
|
|
|
@property(assign) NSColorWellStyle colorWellStyle API_AVAILABLE(macos(13.0));
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2022-04-24 20:34:30 +00:00
|
|
|
NS_ASSUME_NONNULL_END
|