2016-06-08 19:17:12 +03:00
|
|
|
/**
|
|
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
|
|
* See LICENSE
|
|
|
|
*/
|
|
|
|
|
|
|
|
@import Cocoa;
|
|
|
|
@import CoreText;
|
|
|
|
|
2016-06-18 12:43:37 +03:00
|
|
|
#import "NeoVimUiBridgeProtocol.h"
|
|
|
|
|
2016-06-08 19:17:12 +03:00
|
|
|
@interface TextDrawer : NSObject
|
|
|
|
|
2016-06-18 12:43:37 +03:00
|
|
|
@property (nonatomic, nonnull, retain) NSFont *font;
|
|
|
|
@property (nonatomic, readonly) CGFloat lineSpace;
|
|
|
|
@property (nonatomic, readonly) CGSize cellSize;
|
|
|
|
|
|
|
|
- (instancetype _Nonnull)initWithFont:(NSFont *_Nonnull)font;
|
|
|
|
|
|
|
|
- (void)drawString:(NSString *_Nonnull)string
|
|
|
|
positions:(CGPoint *_Nonnull)positions positionsCount:(NSInteger)positionsCount
|
|
|
|
highlightAttrs:(CellAttributes)attrs
|
2016-06-08 19:17:12 +03:00
|
|
|
context:(CGContextRef _Nonnull)context;
|
|
|
|
|
|
|
|
@end
|