mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[qwaq] Remove obsolete screen class
This commit is contained in:
parent
d4de1d7418
commit
4c5ab07347
2 changed files with 0 additions and 58 deletions
|
@ -1,15 +0,0 @@
|
|||
#ifndef __qwaq_screen_h
|
||||
#define __qwaq_screen_h
|
||||
|
||||
#include "qwaq-draw.h"
|
||||
#include "qwaq-rect.h"
|
||||
#include "qwaq-view.h"
|
||||
|
||||
@interface Screen: View
|
||||
{
|
||||
}
|
||||
+(Screen *) screen;
|
||||
-handleEvent: (qwaq_event_t *) event;
|
||||
@end
|
||||
|
||||
#endif//__qwaq_screen_h
|
|
@ -1,43 +0,0 @@
|
|||
#include <Array.h>
|
||||
#include "qwaq-curses.h"
|
||||
#include "qwaq-screen.h"
|
||||
|
||||
@implementation Screen
|
||||
+(Screen *) screen
|
||||
{
|
||||
return [[[self alloc] init] autorelease];
|
||||
}
|
||||
|
||||
-init
|
||||
{
|
||||
if (!(self = [super initWithRect:getwrect (stdscr)])) {
|
||||
return nil;
|
||||
}
|
||||
textContext = [TextContext screen];
|
||||
[(id)textContext scrollok: 1];
|
||||
return self;
|
||||
}
|
||||
|
||||
-handleEvent: (qwaq_event_t *) event
|
||||
{
|
||||
if (event.what & qe_mouse) {
|
||||
[self printf:"%04x %2d %2d %d %08x \r", event.what, event.mouse.x, event.mouse.y, event.mouse.click, event.mouse.buttons];
|
||||
[self redraw];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-draw
|
||||
{
|
||||
return self;
|
||||
}
|
||||
|
||||
-redraw
|
||||
{
|
||||
//update_panels ();
|
||||
[TextContext refresh];
|
||||
//[TextContext doupdate];
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
Loading…
Reference in a new issue