26 lines
861 B
C
26 lines
861 B
C
/*
|
|
* A 'window' is simply a canvas that can receive events.
|
|
* It can be anything from a simple message box to the
|
|
* game screen when playing.
|
|
*
|
|
* See event.c for event handling code.
|
|
*
|
|
* -kreator 2009-05-06
|
|
*/
|
|
|
|
#include "event.h"
|
|
#include "gr.h"
|
|
|
|
typedef struct window window;
|
|
|
|
extern window *window_create(grs_canvas *src, int x, int y, int w, int h, int (*event_callback)(window *wind, d_event *event, void *data), void *data);
|
|
extern void window_close(window *wind);
|
|
extern window *window_get_front(void);
|
|
extern window *window_get_first(void);
|
|
extern window *window_get_next(window *wind);
|
|
extern void window_select(window *wind);
|
|
extern void window_set_visible(window *wind, int visible);
|
|
extern int window_is_visible(window *wind);
|
|
extern grs_canvas *window_get_canvas(window *wind);
|
|
extern int window_send_event(window *wind, d_event *event);
|