Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
CPTMutableTextStyle.h
Go to the documentation of this file.
1 #import "CPTTextStyle.h"
2 
3 @class CPTColor;
4 
6 
7 @property (readwrite, strong, nonatomic, nullable) CPTNativeFont *font;
8 @property (readwrite, copy, nonatomic, nullable) NSString *fontName;
9 @property (readwrite, assign, nonatomic) CGFloat fontSize;
10 @property (readwrite, copy, nonatomic, nullable) CPTColor *color;
11 @property (readwrite, assign, nonatomic) CPTTextAlignment textAlignment;
12 @property (readwrite, assign, nonatomic) NSLineBreakMode lineBreakMode;
13 
14 @end
CPTTextStyle.h
CPTTextAlignment
CPTTextAlignment
Enumeration of paragraph alignments.
Definition: CPTTextStylePlatformSpecific.h:6
CPTTextStyle
Immutable wrapper for various text style properties.
Definition: CPTTextStyle.h:18
CPTColor
An immutable color.
Definition: CPTColor.h:3
-[NSObject copy]
id copy
CPTMutableTextStyle::font
CPTNativeFont * font
The font. Default is nil.
Definition: CPTMutableTextStyle.h:7
CPTMutableTextStyle
Mutable wrapper for text style properties.
Definition: CPTMutableTextStyle.h:6
CPTMutableTextStyle::color
CPTColor * color
The current text color. Default is solid black.
Definition: CPTMutableTextStyle.h:10
CPTMutableTextStyle::lineBreakMode
NSLineBreakMode lineBreakMode
The line break mode used when laying out the text. Default is NSLineBreakByWordWrapping .
Definition: CPTMutableTextStyle.h:12
NSString
CPTMutableTextStyle::textAlignment
CPTTextAlignment textAlignment
The paragraph alignment for multi-line text. Default is CPTTextAlignmentLeft.
Definition: CPTMutableTextStyle.h:11
CPTMutableTextStyle::fontSize
CGFloat fontSize
The font size. Default is 12.0. Ignored if font is not nil.
Definition: CPTMutableTextStyle.h:9
CPTNativeFont
UIFont CPTNativeFont
Platform-native font.
Definition: CPTPlatformSpecificDefines.h:6
CPTMutableTextStyle::fontName
NSString * fontName
The font name. Default is Helvetica. Ignored if font is not nil.
Definition: CPTMutableTextStyle.h:8