mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 08:50:58 +00:00
8a7fbdfc9f
It currently dies when single stepping or exiting due to EditBuffer's retain count not getting incremented when initialized. This is because EditBuffer is initialized in C and thus does not call Object's -init.
39 lines
774 B
Objective-C
39 lines
774 B
Objective-C
#ifndef __qwaq_ui_window_h
|
|
#define __qwaq_ui_window_h
|
|
|
|
#include "Object.h"
|
|
|
|
@class Group;
|
|
@class Button;
|
|
@class TitleBar;
|
|
|
|
#include "ui/draw.h"
|
|
#include "ui/rect.h"
|
|
#include "ui/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;
|
|
TitleBar *titleBar;
|
|
}
|
|
+(Window *)withRect: (Rect) rect;
|
|
-setTitle:(string) title;
|
|
-setBackground: (int) ch;
|
|
-insert: (View *) view;
|
|
-insertDrawn: (View *) view;
|
|
-insertSelected: (View *) view;
|
|
@end
|
|
|
|
#endif//__qwaq_ui_window_h
|