mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
1479880954
With this, windows can be resized using any of the corners or the three sides other than top (top side is move-only, otherwise moving a window without resizing would be impossible).
34 lines
641 B
Objective-C
34 lines
641 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;
|
|
-addView: (View *) view;
|
|
@end
|
|
|
|
#endif//__qwaq_window_h
|