mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2024-12-22 07:30:40 +00:00
1396edfad4
git-svn-id: svn://qnap.local/TwoTerm/trunk@2005 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
29 lines
511 B
Objective-C
29 lines
511 B
Objective-C
//
|
|
// CharacterGenerator.h
|
|
// 2Term
|
|
//
|
|
// Created by Kelvin Sherlock on 7/4/2010.
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
@interface CharacterGenerator : NSObject
|
|
{
|
|
CGImageRef _image;
|
|
NSMutableArray *_characters;
|
|
NSSize _size;
|
|
}
|
|
|
|
+(CharacterGenerator *)generator;
|
|
|
|
@property (nonatomic, readonly) NSSize characterSize;
|
|
|
|
-(NSImage *)imageForCharacter: (unsigned)character;
|
|
|
|
-(void)drawCharacter: (unsigned)character atPoint: (NSPoint)point;
|
|
|
|
@end
|
|
|