2 * See Licensing and Copyright notice in naev.h
13 #include "tk/widget.h"
19 int toolkit_isOpen (void);
25 unsigned int window_create( const char* name
,
26 const int x
, const int y
, /* position */
27 const int w
, const int h
); /* dimensions */
33 void window_setAccept( const unsigned int wid
, void (*fptr
)(unsigned int,char*) );
34 void window_setCancel( const unsigned int wid
, void (*cancel
)(unsigned int,char*) );
35 void window_handleKeys( const unsigned int wid
,
36 int (*keyhandler
)(unsigned int,SDLKey
,SDLMod
) );
37 void window_handleEvents( const unsigned int wid
,
38 int (*eventhandler
)(unsigned int,SDL_Event
*) );
45 int window_exists( const char* wdwname
);
46 int widget_exists( const unsigned int wid
, const char* wgtname
);
47 unsigned int window_get( const char* wdwname
);
48 void window_dimWindow( const unsigned int wid
, int *w
, int *h
);
49 void window_posWidget( const unsigned int wid
,
50 char* name
, int *x
, int *y
);
51 void window_moveWidget( const unsigned int wid
,
52 char* name
, int x
, int y
);
57 void window_close( unsigned int wid
, char *str
);
58 void window_destroy( const unsigned int wid
);
59 void window_destroyWidget( unsigned int wid
, const char* wgtname
);
60 void window_setParent( unsigned int wid
, unsigned int parent
);
61 unsigned int window_getParent( unsigned int wid
);
62 void window_onClose( unsigned int wid
, void (*fptr
)(unsigned int,char*) );
68 void toolkit_render (void);
74 int toolkit_input( SDL_Event
* event
);
75 void toolkit_update (void);
76 void toolkit_clearKey (void);
82 int toolkit_init (void);
83 void toolkit_exit (void);
89 void toolkit_delay (void);
92 #endif /* TOOLKIT_H */