mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 16:37:30 +00:00
f3236410d0
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.
28 lines
528 B
Objective-C
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
|