mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 17:01:22 +00:00
8a7fbdfc9f
It currently dies when single stepping or exiting due to EditBuffer's retain count not getting incremented when initialized. This is because EditBuffer is initialized in C and thus does not call Object's -init.
44 lines
888 B
Objective-C
44 lines
888 B
Objective-C
#ifndef __qwaq_ui_group_h
|
|
#define __qwaq_ui_group_h
|
|
|
|
#include <Array.h>
|
|
|
|
#include "ui/event.h"
|
|
#include "ui/draw.h"
|
|
|
|
@class View;
|
|
|
|
@interface Group : Object
|
|
{
|
|
View *owner;
|
|
Array *views;
|
|
View *mouse_grabbed;
|
|
View *mouse_within;
|
|
int focused;
|
|
id<TextContext> context;
|
|
}
|
|
+(Group *)withContext:(id<TextContext>)context owner:(View *)owner;
|
|
-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_ui_group_h
|