2010-07-08 22:26:58 +00:00
|
|
|
//
|
|
|
|
// EmulatorView.h
|
|
|
|
// 2Term
|
|
|
|
//
|
|
|
|
// Created by Kelvin Sherlock on 7/3/2010.
|
|
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
2010-07-09 01:18:30 +00:00
|
|
|
#include "Emulator.h"
|
|
|
|
|
|
|
|
#include "iGeometry.h"
|
2010-07-08 22:26:58 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
2010-07-09 01:18:30 +00:00
|
|
|
#include "Screen.h"
|
2010-07-08 22:26:58 +00:00
|
|
|
|
|
|
|
|
2010-07-09 01:18:30 +00:00
|
|
|
#endif
|
2010-07-08 22:26:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
@class CharacterGenerator;
|
|
|
|
|
|
|
|
@interface EmulatorView : NSView {
|
2010-07-09 01:18:30 +00:00
|
|
|
|
2010-07-08 22:26:58 +00:00
|
|
|
int _fd;
|
|
|
|
|
2010-07-09 01:18:30 +00:00
|
|
|
NSObject<Emulator> *_emulator;
|
2010-07-08 22:26:58 +00:00
|
|
|
|
|
|
|
NSThread *_readerThread;
|
|
|
|
|
|
|
|
CharacterGenerator *_charGen;
|
|
|
|
|
|
|
|
NSColor *_backgroundColor;
|
|
|
|
NSColor *_foregroundColor;
|
|
|
|
|
|
|
|
CGFloat _charHeight;
|
|
|
|
CGFloat _charWidth;
|
2010-07-09 01:18:30 +00:00
|
|
|
|
|
|
|
CGFloat _paddingTop;
|
|
|
|
CGFloat _paddingBottom;
|
|
|
|
CGFloat _paddingLeft;
|
|
|
|
CGFloat _paddingRight;
|
2010-07-08 22:26:58 +00:00
|
|
|
|
|
|
|
|
2010-07-09 02:18:02 +00:00
|
|
|
NSColor *_scanLine;
|
|
|
|
|
2010-07-08 22:26:58 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
2010-07-09 01:18:30 +00:00
|
|
|
Screen _screen;
|
2010-07-08 22:26:58 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
-(void)startBackgroundReader;
|
|
|
|
-(void)dataAvailable;
|
|
|
|
|
|
|
|
@property (nonatomic, assign) int fd;
|
2010-07-09 01:18:30 +00:00
|
|
|
//@property (nonatomic, assign) iPoint cursor;
|
2010-07-08 22:26:58 +00:00
|
|
|
|
|
|
|
@end
|