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-05 06:44:53 +00:00
|
|
|
-insert: (View *) view;
|
|
|
|
-remove: (View *) view;
|
2020-03-19 02:32:44 +00:00
|
|
|
-draw;
|
|
|
|
-redraw;
|
|
|
|
-handleEvent: (qwaq_event_t *) event;
|
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
|