quakeforge/ruamoko/qwaq/qwaq-screen.h
Bill Currie f3236410d0 [qwaq] Make the event system more informative
Doesn't have timestamps at this stage, but otherwise it reflects the
event system I had in my old text UI which was heavily based on
TurboVision. TV is pretty good (after looking at things a bit closer I
found it wasn't as deep as I thought), and better yet, Borland released
it to the public domain 23 years ago! (wish I'd known that).

Anyway, this commit gets something happening on the screen, even though
the current hierarchy is still a mess.
2020-03-04 22:09:40 +09:00

28 lines
528 B
Objective-C

#ifndef __qwaq_screen_h
#define __qwaq_screen_h
#include <Object.h>
#include "qwaq-draw.h"
#include "qwaq-rect.h"
@class View;
@class Array;
@interface Screen: Object <HandleMouseEvent, Draw>
{
Rect rect;
Array *views;
Array *event_handlers;
Array *focused_handlers;
Array *mouse_handlers;
Array *mouse_handler_rects;
View *focusedView;
struct window_s *window;
}
+(Screen *) screen;
-add: obj;
-setBackground: (int) ch;
-printf: (string) fmt, ...;
@end
#endif//__qwaq_screen_h