mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
34 lines
569 B
R
34 lines
569 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;
|
|
}
|
|
|
|
- (int) keyEvent:(int)key unicode:(int)unicode down:(int)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
|