2020-03-01 09:25:02 +00:00
|
|
|
#ifndef __qwaq_screen_h
|
|
|
|
#define __qwaq_screen_h
|
|
|
|
|
|
|
|
#include <Object.h>
|
|
|
|
|
2020-03-02 06:22:54 +00:00
|
|
|
#include "qwaq-draw.h"
|
2020-03-01 09:25:02 +00:00
|
|
|
#include "qwaq-rect.h"
|
|
|
|
@class View;
|
|
|
|
@class Array;
|
|
|
|
|
2020-03-02 06:22:54 +00:00
|
|
|
@interface Screen: Object <HandleEvent, Draw>
|
2020-03-01 09:25:02 +00:00
|
|
|
{
|
|
|
|
Rect rect;
|
|
|
|
Array *views;
|
2020-03-02 06:22:54 +00:00
|
|
|
Array *event_handlers;
|
2020-03-01 09:25:02 +00:00
|
|
|
View *focusedView;
|
|
|
|
struct window_s *window;
|
|
|
|
}
|
|
|
|
+(Screen *) screen;
|
|
|
|
-add: obj;
|
|
|
|
-setBackground: (int) ch;
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif//__qwaq_screen_h
|