mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
c58cf2c2d0
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.
27 lines
514 B
Objective-C
27 lines
514 B
Objective-C
#ifndef __qwaq_window_h
|
|
#define __qwaq_window_h
|
|
|
|
#include "Object.h"
|
|
|
|
@class View;
|
|
@class Array;
|
|
|
|
#include "qwaq-draw.h"
|
|
#include "qwaq-rect.h"
|
|
|
|
@interface Window: Object <Draw, HandleFocusedEvent, HandleMouseEvent>
|
|
{
|
|
Rect rect;
|
|
id parent;
|
|
Point point; // FIXME can't be local :(
|
|
Array *views;
|
|
View *focusedView;
|
|
struct window_s *window;
|
|
struct panel_s *panel;
|
|
}
|
|
+windowWithRect: (Rect) rect;
|
|
-addView: (View *) view;
|
|
-setBackground: (int) ch;
|
|
@end
|
|
|
|
#endif//__qwaq_window_h
|