NS{Cell,View}: implement stubs for layout direction handling

Implement stubs for the layout direction properties in NSCell and
NSView. Currently, they default to left-to-right layouting.
This commit is contained in:
Daniel Ferreira 2017-07-18 03:57:41 +10:00 committed by Ivan Vučica
parent 05c58fe023
commit 758d524547
4 changed files with 44 additions and 0 deletions

View file

@ -36,6 +36,7 @@
#import <AppKit/NSGraphicsContext.h>
#import <AppKit/NSResponder.h>
#import <AppKit/NSUserInterfaceLayout.h>
@class NSArray;
@class NSAttributedString;
@ -628,6 +629,15 @@ PACKAGE_SCOPE
#endif
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_8, GS_API_LATEST)
#if GS_HAS_DECLARED_PROPERTIES
@property NSUserInterfaceLayoutDirection userInterfaceLayoutDirection;
#else
- (NSUserInterfaceLayoutDirection) userInterfaceLayoutDirection;
- (void) setUserInterfaceLayoutDirection: (NSUserInterfaceLayoutDirection)dir;
#endif
#endif
@end