quakeforge/ruamoko/cl_menu/ProxyView.r
Bill Currie 75ec6bf244 Clean out some unnecessary types from the progs engine and clean up the mess.
This is a nasty commit, sorry, but 99% of the commit is interdependent.
2011-01-10 12:25:31 +09:00

34 lines
588 B
R

#include "ProxyView.h"
@implementation ProxyView
-(id)initWithBounds:(Rect)aRect title:(View [])aTitle view:(View [])aView
{
self = [super initWithBounds:aRect];
if (!self)
return self;
title = aTitle;
view = aView;
return self;
}
- (integer) keyEvent:(integer)key unicode:(integer)unicode down:(integer)down
{
return [view keyEvent:key unicode:unicode down:down];
}
- (void) draw
{
[title draw];
[view draw];
}
- (void) setBasePosFromView: (View []) aview
{
[super setBasePosFromView:aview];
[title setBasePosFromView:self];
[view setBasePosFromView:self];
}
@end