mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 11:37:32 +03:00
27 lines
743 B
Objective-C
27 lines
743 B
Objective-C
/**
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
* See LICENSE
|
|
*/
|
|
|
|
@import Cocoa;
|
|
@import CoreText;
|
|
|
|
#import "NeoVimUiBridgeProtocol.h"
|
|
|
|
@interface TextDrawer : NSObject
|
|
|
|
@property (nonatomic, nonnull, retain) NSFont *font;
|
|
@property (nonatomic) bool useLigatures;
|
|
@property (nonatomic, readonly) CGFloat leading;
|
|
@property (nonatomic, readonly) CGFloat descent;
|
|
@property (nonatomic, readonly) CGSize cellSize;
|
|
|
|
- (instancetype _Nonnull)initWithFont:(NSFont *_Nonnull)font useLigatures:(bool)useLigatures;
|
|
|
|
- (void)drawString:(NSString *_Nonnull)string
|
|
positions:(CGPoint *_Nonnull)positions positionsCount:(NSInteger)positionsCount
|
|
highlightAttrs:(CellAttributes)attrs
|
|
context:(CGContextRef _Nonnull)context;
|
|
|
|
@end
|