mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
NSText: define new NSTextAlignment constants
Define new-style NSTextAlignment* constants on GUI for compatibility purposes with new macOS versions.
This commit is contained in:
parent
78be5ef0ea
commit
5ce4348754
1 changed files with 13 additions and 2 deletions
|
@ -69,13 +69,24 @@
|
|||
@class NSColor;
|
||||
@class NSFont;
|
||||
|
||||
typedef enum _NSTextAlignment {
|
||||
typedef NSInteger NSTextAlignment;
|
||||
enum {
|
||||
NSLeftTextAlignment = 0,
|
||||
NSRightTextAlignment,
|
||||
NSCenterTextAlignment,
|
||||
NSJustifiedTextAlignment,
|
||||
NSNaturalTextAlignment
|
||||
} NSTextAlignment;
|
||||
};
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_11, GS_API_LATEST)
|
||||
enum {
|
||||
NSTextAlignmentLeft = NSLeftTextAlignment,
|
||||
NSTextAlignmentRight = NSRightTextAlignment,
|
||||
NSTextAlignmentCenter = NSCenterTextAlignment,
|
||||
NSTextAlignmentJustified = NSJustifiedTextAlignment,
|
||||
NSTextAlignmentNatural = NSNaturalTextAlignment
|
||||
};
|
||||
#endif
|
||||
|
||||
enum {
|
||||
NSTextWritingDirectionEmbedding = (0 << 1),
|
||||
|
|
Loading…
Reference in a new issue