source: orbit/iOS/Orbit/Orbit/CorePlotHeaders/CPTTextStyle.h @ e5b8e57

ServoTab_Interfacepyramid
Last change on this file since e5b8e57 was a9059a5, checked in by Steve Castellotti <sc@…>, 10 years ago

Arduino:

  • updated to permit custom setting of Throttle, Yaw, and Pitch

Android:

  • Minor tweak to Configuration location

iOS:

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#import <Foundation/Foundation.h>
2#import <QuartzCore/QuartzCore.h>
3
4/// @file
5
6@class CPTColor;
7
8/**
9 *  @brief Enumeration of paragraph alignments.
10 **/
11typedef enum  _CPTTextAlignment {
12    CPTTextAlignmentLeft,   ///< Left alignment
13    CPTTextAlignmentCenter, ///< Center alignment
14    CPTTextAlignmentRight   ///< Right alignment
15}
16CPTTextAlignment;
17
18@interface CPTTextStyle : NSObject<NSCoding, NSCopying, NSMutableCopying> {
19    @protected
20    NSString *fontName;
21    CGFloat fontSize;
22    CPTColor *color;
23    CPTTextAlignment textAlignment;
24}
25
26@property (readonly, copy, nonatomic) NSString *fontName;
27@property (readonly, assign, nonatomic) CGFloat fontSize;
28@property (readonly, copy, nonatomic) CPTColor *color;
29@property (readonly, assign, nonatomic) CPTTextAlignment textAlignment;
30
31/// @name Factory Methods
32/// @{
33+(id)textStyle;
34/// @}
35
36@end
37
38/** @category NSString(CPTTextStyleExtensions)
39 *  @brief NSString extensions for drawing styled text.
40 **/
41@interface NSString(CPTTextStyleExtensions)
42
43/// @name Measurement
44/// @{
45-(CGSize)sizeWithTextStyle:(CPTTextStyle *)style;
46/// @}
47
48/// @name Drawing
49/// @{
50-(void)drawInRect:(CGRect)rect withTextStyle:(CPTTextStyle *)style inContext:(CGContextRef)context;
51/// @}
52
53@end
Note: See TracBrowser for help on using the repository browser.