2020-03-05 06:44:53 +00:00
|
|
|
#ifndef __qwaq_group_h
|
|
|
|
#define __qwaq_group_h
|
|
|
|
|
2020-03-19 02:32:44 +00:00
|
|
|
#include <Array.h>
|
2020-03-05 06:44:53 +00:00
|
|
|
|
2020-03-19 02:32:44 +00:00
|
|
|
#include "event.h"
|
|
|
|
#include "qwaq-draw.h"
|
|
|
|
|
|
|
|
@class View;
|
|
|
|
|
|
|
|
@interface Group : Object
|
2020-03-05 06:44:53 +00:00
|
|
|
{
|
2020-03-19 07:27:30 +00:00
|
|
|
View *owner;
|
2020-03-05 06:44:53 +00:00
|
|
|
Array *views;
|
2020-03-19 06:55:57 +00:00
|
|
|
View *mouse_grabbed;
|
|
|
|
View *mouse_within;
|
2020-03-05 06:44:53 +00:00
|
|
|
int focused;
|
2020-03-19 02:32:44 +00:00
|
|
|
id<TextContext> context;
|
2020-03-05 06:44:53 +00:00
|
|
|
}
|
2020-03-19 07:27:30 +00:00
|
|
|
-initWithContext: (id<TextContext>) context owner: (View *) owner;
|
2020-03-26 05:46:48 +00:00
|
|
|
-(id<TextContext>)context;
|
|
|
|
-setContext: (id<TextContext>) context;
|
2020-03-05 06:44:53 +00:00
|
|
|
-insert: (View *) view;
|
2020-03-24 04:33:28 +00:00
|
|
|
-insertDrawn: (View *) view;
|
|
|
|
-insertSelected: (View *) view;
|
2020-03-05 06:44:53 +00:00
|
|
|
-remove: (View *) view;
|
2020-03-19 12:28:55 +00:00
|
|
|
-(Rect) rect;
|
|
|
|
-(Point) origin;
|
|
|
|
-(Extent) size;
|
2020-03-19 02:32:44 +00:00
|
|
|
-draw;
|
|
|
|
-redraw;
|
2020-03-23 11:14:32 +00:00
|
|
|
-resize: (Extent) delta;
|
2020-03-19 02:32:44 +00:00
|
|
|
-handleEvent: (qwaq_event_t *) event;
|
2020-03-24 04:33:28 +00:00
|
|
|
-takeFocus;
|
|
|
|
-loseFocus;
|
|
|
|
-selectNext;
|
|
|
|
-selectPrev;
|
|
|
|
-selectView: (View *) view;
|
2020-03-19 07:27:30 +00:00
|
|
|
-(void) grabMouse;
|
|
|
|
-(void) releaseMouse;
|
2020-03-05 06:44:53 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif//__qwaq_group_h
|