mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-12 14:55:50 +00:00
This is horrible, doesn't work, isn't really the direction I want to go (that became apparent while implementing Screen's handleEvent) and crashes anyway (Array and not-id...) *sigh* Still, this does have some good stuff in it, and it pushed qfcc along some more.
28 lines
523 B
Objective-C
28 lines
523 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 <HandleEvent, 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
|