6 #include "cl_dyntexture.h"
8 #define CLGECKOPREFIX CLDYNTEXTUREPREFIX "gecko/"
10 typedef enum clgecko_buttoneventtype_e {
14 // use for up + down (but dont use both)
16 } clgecko_buttoneventtype_t;
18 typedef struct clgecko_s clgecko_t;
20 void CL_Gecko_Frame( void );
21 void CL_Gecko_Init( void );
22 void CL_Gecko_Shutdown( void );
24 clgecko_t * CL_Gecko_CreateBrowser( const char *name, int ownerProg );
25 clgecko_t * CL_Gecko_FindBrowser( const char *name );
26 void CL_Gecko_DestroyBrowser( clgecko_t *instance );
28 void CL_Gecko_NavigateToURI( clgecko_t *instance, const char *URI );
29 // x and y between 0.0 and 1.0 (0.0 is top-left?)
30 void CL_Gecko_Event_CursorMove( clgecko_t *instance, float x, float y );
32 // returns whether the key/button event was handled or not
33 qboolean CL_Gecko_Event_Key( clgecko_t *instance, keynum_t key, clgecko_buttoneventtype_t eventtype );
35 void CL_Gecko_Resize( clgecko_t *instance, int width, int height );
36 // get the ratio between gecko instance's size in the texture and the actual texture size..
37 void CL_Gecko_GetTextureExtent( clgecko_t *instance, float* pwidth, float* pheight );