2010-07-08 22:26:58 +00:00
|
|
|
//
|
|
|
|
// CharacterGenerator.h
|
|
|
|
// 2Term
|
|
|
|
//
|
|
|
|
// Created by Kelvin Sherlock on 7/4/2010.
|
|
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
|
2010-12-15 04:58:26 +00:00
|
|
|
@interface CharacterGenerator : NSObject
|
|
|
|
{
|
|
|
|
CGImageRef _image;
|
|
|
|
NSMutableArray *_characters;
|
|
|
|
NSSize _size;
|
2010-07-08 22:26:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
+(CharacterGenerator *)generator;
|
|
|
|
|
2011-01-22 18:28:20 +00:00
|
|
|
@property (nonatomic, readonly) NSSize characterSize;
|
2010-12-15 04:58:26 +00:00
|
|
|
|
2010-07-08 22:26:58 +00:00
|
|
|
-(NSImage *)imageForCharacter: (unsigned)character;
|
|
|
|
|
2010-12-15 04:58:26 +00:00
|
|
|
-(void)drawCharacter: (unsigned)character atPoint: (NSPoint)point;
|
|
|
|
|
2010-07-08 22:26:58 +00:00
|
|
|
@end
|
2010-12-15 04:58:26 +00:00
|
|
|
|