quakeforge/ruamoko/cl_menu/ProxyView.r
Bill Currie ebb3ec592a [qfcc] Implement bool and lbool types
Since spir-v needs actual bools for its conditional instructions, the
time to do bool properly finally came. As expected, the changes caused
quite a mess, but Ruamoko now does bool/true/false.
2024-11-15 12:36:08 +09:00

34 lines
571 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;
}
- (bool) keyEvent:(int)key unicode:(int)unicode down:(bool)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