quakeforge/ruamoko/qwaq/qwaq-group.h
Bill Currie e893421dba [qwaq] Get context from owner instead of prev view
The previous view might be nil, which would result in the new view not
getting a context.
2020-03-26 14:46:48 +09:00

43 lines
814 B
Objective-C

#ifndef __qwaq_group_h
#define __qwaq_group_h
#include <Array.h>
#include "event.h"
#include "qwaq-draw.h"
@class View;
@interface Group : Object
{
View *owner;
Array *views;
View *mouse_grabbed;
View *mouse_within;
int focused;
id<TextContext> context;
}
-initWithContext: (id<TextContext>) context owner: (View *) owner;
-(id<TextContext>)context;
-setContext: (id<TextContext>) context;
-insert: (View *) view;
-insertDrawn: (View *) view;
-insertSelected: (View *) view;
-remove: (View *) view;
-(Rect) rect;
-(Point) origin;
-(Extent) size;
-draw;
-redraw;
-resize: (Extent) delta;
-handleEvent: (qwaq_event_t *) event;
-takeFocus;
-loseFocus;
-selectNext;
-selectPrev;
-selectView: (View *) view;
-(void) grabMouse;
-(void) releaseMouse;
@end
#endif//__qwaq_group_h