-
Notifications
You must be signed in to change notification settings - Fork 597
Expand file tree
/
Copy pathCPTTextStylePlatformSpecific.h
More file actions
22 lines (21 loc) · 1.06 KB
/
Copy pathCPTTextStylePlatformSpecific.h
File metadata and controls
22 lines (21 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/// @file
/**
* @brief Enumeration of paragraph alignments.
**/
#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 101200)
typedef NS_ENUM (NSInteger, CPTTextAlignment) {
CPTTextAlignmentLeft = NSTextAlignmentLeft, ///< Left alignment.
CPTTextAlignmentCenter = NSTextAlignmentCenter, ///< Center alignment.
CPTTextAlignmentRight = NSTextAlignmentRight, ///< Right alignment.
CPTTextAlignmentJustified = NSTextAlignmentJustified, ///< Justified alignment.
CPTTextAlignmentNatural = NSTextAlignmentNatural ///< Natural alignment of the text's script.
};
#else
typedef NS_ENUM (NSInteger, CPTTextAlignment) {
CPTTextAlignmentLeft = NSLeftTextAlignment, ///< Left alignment.
CPTTextAlignmentCenter = NSCenterTextAlignment, ///< Center alignment.
CPTTextAlignmentRight = NSRightTextAlignment, ///< Right alignment.
CPTTextAlignmentJustified = NSJustifiedTextAlignment, ///< Justified alignment.
CPTTextAlignmentNatural = NSNaturalTextAlignment ///< Natural alignment of the text's script.
};
#endif