//
//  XTRequiredRectForTextCache.h
//  XTads
//
//  Created by Rune Berg on 27/11/2018.
//  Copyright © 2018 Rune Berg. All rights reserved.
//

#import <Foundation/Foundation.h>

//NS_ASSUME_NONNULL_BEGIN

//TODO !!! ren ...Size...
@interface XTRequiredRectForTextCache : NSObject

+ (XTRequiredRectForTextCache *)singletonInstance;

+ (void)reset;

- (NSSize)getSizeForText:(NSAttributedString *)text viewSize:(NSSize)viewSize;

- (void)noteSize:(NSSize)requiredSize forText:(NSAttributedString *)text viewSize:(NSSize)viewSize;

- (NSString *)statsString;

@end

//NS_ASSUME_NONNULL_END
