mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +00:00
2f3ca9d9e4
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.
23 lines
380 B
Objective-C
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
|