2020-03-29 17:34:08 +00:00
|
|
|
#ifndef __qwaq_ui_group_h
|
|
|
|
#define __qwaq_ui_group_h
|
2020-03-05 06:44:53 +00:00
|
|
|
|
2020-03-19 02:32:44 +00:00
|
|
|
#include <Array.h>
|
2020-03-05 06:44:53 +00:00
|
|
|
|
2020-03-29 17:34:08 +00:00
|
|
|
#include "ui/event.h"
|
|
|
|
#include "ui/draw.h"
|
2020-03-19 02:32:44 +00:00
|
|
|
|
|
|
|
@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-30 07:30:58 +00:00
|
|
|
+(Group *)withContext:(id<TextContext>)context owner:(View *)owner;
|
|
|
|
-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
|
|
|
|
|
2020-03-29 17:34:08 +00:00
|
|
|
#endif//__qwaq_ui_group_h
|