quakeforge/ruamoko/qwaq/qwaq-window.h
Bill Currie 2f3ca9d9e4 [qwaq] Clean up the hierarchy
I think I've finally figured out what I want the core hierarchy to be.
Right now, it's just the two classes: View and Window (derived from
View). Window has a Group, and Group is just a collection of Views that
it manages. QwaqApplication is just an object but like a Window, it has
a Group of views.

    View
      Window has a Group
    Group contains Views
    QwaqApplication has a group

More work needs to be done on drawing and event handling, but things are
working again.
2020-03-19 11:32:44 +09:00

23 lines
380 B
Objective-C

#ifndef __qwaq_window_h
#define __qwaq_window_h
#include "Object.h"
@class Group;
#include "qwaq-draw.h"
#include "qwaq-rect.h"
#include "qwaq-view.h"
@interface Window: View
{
struct panel_s *panel;
Group *objects;
Point point; // FIXME can't be local :(
DrawBuffer *buf;
}
+windowWithRect: (Rect) rect;
-setBackground: (int) ch;
@end
#endif//__qwaq_window_h