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-19 02:32:44 +00:00
|
|
|
@class Group;
|
2020-03-23 13:10:03 +00:00
|
|
|
@class Button;
|
2020-03-24 16:39:56 +00:00
|
|
|
@class TitleBar;
|
2020-03-01 09:25:02 +00:00
|
|
|
|
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-05 06:44:53 +00:00
|
|
|
#include "qwaq-view.h"
|
2020-03-01 09:25:02 +00:00
|
|
|
|
2020-03-19 02:32:44 +00:00
|
|
|
@interface Window: View
|
2020-02-29 15:40:55 +00:00
|
|
|
{
|
2020-03-01 09:25:02 +00:00
|
|
|
struct panel_s *panel;
|
2020-03-19 02:32:44 +00:00
|
|
|
Group *objects;
|
|
|
|
Point point; // FIXME can't be local :(
|
2020-03-12 17:09:55 +00:00
|
|
|
DrawBuffer *buf;
|
2020-03-23 13:10:03 +00:00
|
|
|
|
|
|
|
Button *topDrag; // move-only
|
|
|
|
Button *topLeftDrag;
|
|
|
|
Button *topRightDrag;
|
|
|
|
Button *leftDrag;
|
|
|
|
Button *rightDrag;
|
|
|
|
Button *bottomLeftDrag;
|
|
|
|
Button *bottomRightDrag;
|
|
|
|
Button *bottomDrag;
|
2020-03-24 16:39:56 +00:00
|
|
|
TitleBar *titleBar;
|
2020-02-29 15:40:55 +00:00
|
|
|
}
|
2020-03-01 09:25:02 +00:00
|
|
|
+windowWithRect: (Rect) rect;
|
2020-03-24 16:39:56 +00:00
|
|
|
-setTitle:(string) title;
|
2020-03-01 09:25:02 +00:00
|
|
|
-setBackground: (int) ch;
|
2020-03-24 04:33:28 +00:00
|
|
|
-insert: (View *) view;
|
|
|
|
-insertDrawn: (View *) view;
|
|
|
|
-insertSelected: (View *) view;
|
2020-02-29 15:40:55 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif//__qwaq_window_h
|