2021-09-21 03:58:10 +00:00
|
|
|
#ifndef __qwaq_app_h
|
|
|
|
#define __qwaq_app_h
|
|
|
|
|
|
|
|
#include <Object.h>
|
|
|
|
|
|
|
|
#include "ruamoko/qwaq/ui/event.h"
|
|
|
|
#include "ruamoko/qwaq/ui/rect.h"
|
|
|
|
|
|
|
|
@class Array;
|
|
|
|
@class Group;
|
|
|
|
@class TextContext;
|
|
|
|
@class View;
|
|
|
|
|
|
|
|
extern int color_palette[64];
|
|
|
|
|
|
|
|
@interface InputApplication: Object
|
|
|
|
{
|
|
|
|
qwaq_event_t event;
|
|
|
|
qwaq_command endState;
|
|
|
|
|
|
|
|
Group *objects;
|
|
|
|
|
|
|
|
TextContext *screen;
|
|
|
|
Extent screenSize;
|
|
|
|
int autocount;
|
2021-09-25 05:22:19 +00:00
|
|
|
|
|
|
|
Array *devices;
|
2021-09-21 03:58:10 +00:00
|
|
|
}
|
|
|
|
-(Extent)size;
|
|
|
|
-(TextContext *)screen;
|
|
|
|
-addView:(View *)view;
|
2021-09-25 05:22:19 +00:00
|
|
|
-removeView:(View *)view;
|
2021-09-21 03:58:10 +00:00
|
|
|
-run;
|
|
|
|
@end
|
|
|
|
|
|
|
|
extern InputApplication *application;
|
|
|
|
|
|
|
|
#endif//__qwaq_app_h
|