8 #include "cl_dyntexture.h"
\r
10 #define DEFAULT_GECKO_WIDTH 512
\r
11 #define DEFAULT_GECKO_HEIGHT DEFAULT_GECKO_WIDTH
\r
13 #define CLGECKOPREFIX CLDYNTEXTUREPREFIX "gecko/"
\r
14 #define MAX_GECKO_INSTANCES 16
\r
16 typedef enum clgecko_buttoneventtype_e {
\r
19 CLG_BET_DOUBLECLICK,
\r
20 // use for up + down (but dont use both)
\r
22 } clgecko_buttoneventtype_t;
\r
24 typedef struct clgecko_s clgecko_t;
\r
26 void CL_Gecko_Frame( void );
\r
27 void CL_Gecko_Init( void );
\r
28 void CL_Gecko_Shutdown( void );
\r
30 clgecko_t * CL_Gecko_CreateBrowser( const char *name );
\r
31 clgecko_t * CL_Gecko_FindBrowser( const char *name );
\r
32 void CL_Gecko_DestroyBrowser( clgecko_t *instance );
\r
34 void CL_Gecko_NavigateToURI( clgecko_t *instance, const char *URI );
\r
35 // x and y between 0.0 and 1.0 (0.0 is top-left?)
\r
36 void CL_Gecko_Event_CursorMove( clgecko_t *instance, float x, float y );
\r
38 // returns whether the key/button event was handled or not
\r
39 qboolean CL_Gecko_Event_Key( clgecko_t *instance, int key, clgecko_buttoneventtype_t eventtype );
\r