mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
bea64838cc
Not quite right yet, but it worked first try (once I got another compiler bug sorted).
40 lines
1.1 KiB
Objective-C
40 lines
1.1 KiB
Objective-C
#ifndef __qwaq_group_h
|
|
#define __qwaq_group_h
|
|
|
|
#include <Array.h>
|
|
#include "qwaq-view.h"
|
|
|
|
typedef BOOL condition_func (id object, void *data);
|
|
typedef BOOL condition_func2 (id object, void *anObject, void *data);
|
|
|
|
@interface Array (Group)
|
|
- (void) makeObjectsPerformSelector: (SEL)selector
|
|
if: (condition_func)condition
|
|
with: (void *)data;
|
|
- (void) makeObjectsPerformSelector: (SEL)selector
|
|
withObject: (void *)anObject
|
|
if: (condition_func2)condition
|
|
with: (void *)data;
|
|
- (void) makeReversedObjectsPerformSelector: (SEL)selector;
|
|
- (void) makeReversedObjectsPerformSelector: (SEL)selector
|
|
withObject: (void *)anObject;
|
|
- (void) makeReversedObjectsPerformSelector: (SEL)selector
|
|
if: (condition_func)condition
|
|
with: (void *)data;
|
|
- (void) makeReversedObjectsPerformSelector: (SEL)selector
|
|
withObject: (void *)anObject
|
|
if: (condition_func2)condition
|
|
with: (void *)data;
|
|
@end
|
|
|
|
@interface Group : View
|
|
{
|
|
Array *views;
|
|
int focused;
|
|
TextContext *buffer;
|
|
}
|
|
-insert: (View *) view;
|
|
-remove: (View *) view;
|
|
@end
|
|
|
|
#endif//__qwaq_group_h
|