Core Plot (iOS and tvOS)
Cocoa plotting framework for macOS, iOS, and tvOS
|
NSString extensions for drawing styled text. More...
#import <CPTTextStyle.h>
Public Instance Methods | |
Measurement | |
(CGSize) | - sizeWithTextStyle: |
Determines the size of text drawn with the given style. More... | |
Drawing | |
(void) | - drawInRect:withTextStyle:inContext: |
Draws the text into the given graphics context using the given style. More... | |
NSString extensions for drawing styled text.
- (void) drawInRect: | (CGRect) | rect | |
withTextStyle: | (nullable CPTTextStyle *) | style | |
inContext: | (nonnull CGContextRef) | context | |
Draws the text into the given graphics context using the given style.
rect | The bounding rectangle in which to draw the text. |
style | The text style. |
context | The graphics context to draw into. |
- (CGSize) sizeWithTextStyle: | (nullable CPTTextStyle *) | style |
Determines the size of text drawn with the given style.
style | The text style. |