2020-02-29 15:40:55 +00:00
|
|
|
#ifndef __qwaq_window_h
|
|
|
|
#define __qwaq_window_h
|
|
|
|
|
2020-03-01 09:25:02 +00:00
|
|
|
#include "Object.h"
|
2020-02-29 15:40:55 +00:00
|
|
|
|
2020-03-01 09:25:02 +00:00
|
|
|
@class View;
|
|
|
|
@class Array;
|
|
|
|
|
2020-03-02 06:22:54 +00:00
|
|
|
#include "qwaq-draw.h"
|
2020-03-01 09:25:02 +00:00
|
|
|
#include "qwaq-rect.h"
|
|
|
|
|
2020-03-02 06:22:54 +00:00
|
|
|
@interface Window: Object <Draw, TakeFocus>
|
2020-02-29 15:40:55 +00:00
|
|
|
{
|
2020-03-01 09:25:02 +00:00
|
|
|
Rect rect;
|
|
|
|
Point point; // FIXME can't be local :(
|
|
|
|
Array *views;
|
|
|
|
View *focusedView;
|
|
|
|
struct window_s *window;
|
|
|
|
struct panel_s *panel;
|
2020-02-29 15:40:55 +00:00
|
|
|
}
|
2020-03-01 09:25:02 +00:00
|
|
|
+windowWithRect: (Rect) rect;
|
|
|
|
-addView: (View *) view;
|
|
|
|
-setBackground: (int) ch;
|
2020-02-29 15:40:55 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif//__qwaq_window_h
|