quakeforge/ruamoko/qwaq/qwaq-window.h
Bill Currie 77651dbcba [qwaq] Implement focus handling
Sort of works (when not segfaulting due to problem fixed in next
commit).
2020-03-24 13:33:28 +09:00

36 lines
701 B
Objective-C

#ifndef __qwaq_window_h
#define __qwaq_window_h
#include "Object.h"
@class Group;
@class Button;
#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;
Button *topDrag; // move-only
Button *topLeftDrag;
Button *topRightDrag;
Button *leftDrag;
Button *rightDrag;
Button *bottomLeftDrag;
Button *bottomRightDrag;
Button *bottomDrag;
}
+windowWithRect: (Rect) rect;
-setBackground: (int) ch;
-insert: (View *) view;
-insertDrawn: (View *) view;
-insertSelected: (View *) view;
@end
#endif//__qwaq_window_h