2010-11-24 05:43:16 +00:00
|
|
|
#include "ProxyView.h"
|
|
|
|
|
|
|
|
@implementation ProxyView
|
|
|
|
|
2011-02-14 14:08:18 +00:00
|
|
|
-(id)initWithBounds:(Rect)aRect title:(View *)aTitle view:(View *)aView
|
2010-11-24 05:43:16 +00:00
|
|
|
{
|
|
|
|
self = [super initWithBounds:aRect];
|
|
|
|
if (!self)
|
|
|
|
return self;
|
|
|
|
|
|
|
|
title = aTitle;
|
|
|
|
view = aView;
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
2011-03-25 07:46:32 +00:00
|
|
|
- (int) keyEvent:(int)key unicode:(int)unicode down:(int)down
|
2010-11-24 05:43:16 +00:00
|
|
|
{
|
|
|
|
return [view keyEvent:key unicode:unicode down:down];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) draw
|
|
|
|
{
|
|
|
|
[title draw];
|
|
|
|
[view draw];
|
|
|
|
}
|
|
|
|
|
2011-02-14 14:08:18 +00:00
|
|
|
- (void) setBasePosFromView: (View *) aview
|
2010-11-24 05:43:16 +00:00
|
|
|
{
|
|
|
|
[super setBasePosFromView:aview];
|
|
|
|
[title setBasePosFromView:self];
|
|
|
|
[view setBasePosFromView:self];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|