1 | #ifndef CRUT_CLIENTAPI_H
|
---|
2 | #define CRUT_CLEINTAPI_H
|
---|
3 |
|
---|
4 | #ifdef WINDOWS
|
---|
5 | #define CRUT_CLIENT_APIENTRY __stdcall
|
---|
6 | #else
|
---|
7 | #define CRUT_CLIENT_APIENTRY
|
---|
8 | #endif
|
---|
9 |
|
---|
10 | #include "chromium.h"
|
---|
11 | #include "crut_api.h"
|
---|
12 |
|
---|
13 | #ifdef __cplusplus
|
---|
14 | extern "C" {
|
---|
15 | #endif
|
---|
16 |
|
---|
17 | void CRUT_CLIENT_APIENTRY crutInitClient(void);
|
---|
18 | void CRUT_CLIENT_APIENTRY crutReceiveEventType(int type);
|
---|
19 | void CRUT_CLIENT_APIENTRY crutMouseFunc( void (*func)(int button, int state, int x, int y) );
|
---|
20 | void CRUT_CLIENT_APIENTRY crutKeyboardFunc( void (*func) (unsigned char key, int x, int y) );
|
---|
21 | void CRUT_CLIENT_APIENTRY crutReshapeFunc( void (*func) (int width, int height) );
|
---|
22 | void CRUT_CLIENT_APIENTRY crutVisibilityFunc( void (*func) (int state) );
|
---|
23 | void CRUT_CLIENT_APIENTRY crutMotionFunc( void (*func) (int x, int y) );
|
---|
24 | void CRUT_CLIENT_APIENTRY crutPassiveMotionFunc( void (*func) (int x, int y) );
|
---|
25 | void CRUT_CLIENT_APIENTRY crutIdleFunc( void (*func)(void));
|
---|
26 | void CRUT_CLIENT_APIENTRY crutDisplayFunc(void (*func)(void));
|
---|
27 | void CRUT_CLIENT_APIENTRY crutPostRedisplay(void);
|
---|
28 | void CRUT_CLIENT_APIENTRY crutMainLoop(void);
|
---|
29 | int CRUT_CLIENT_APIENTRY crutCreateContext ( unsigned int visual );
|
---|
30 | int CRUT_CLIENT_APIENTRY crutCreateWindow ( unsigned int visual );
|
---|
31 | void CRUT_CLIENT_APIENTRY crutMakeCurrent( int window, int context );
|
---|
32 | void CRUT_CLIENT_APIENTRY crutSwapBuffers( int window, int flags );
|
---|
33 | void CRUT_CLIENT_APIENTRY crutReceiveEvent(CRUTMessage **msg);
|
---|
34 | int CRUT_CLIENT_APIENTRY crutCheckEvent( void );
|
---|
35 | int CRUT_CLIENT_APIENTRY crutPeekNextEvent( void );
|
---|
36 | int CRUT_CLIENT_APIENTRY crutCreateMenu( void (*func) (int val) );
|
---|
37 | void CRUT_CLIENT_APIENTRY crutAddMenuEntry( char* name, int value );
|
---|
38 | void CRUT_CLIENT_APIENTRY crutAddSubMenu( char* name, int menuID );
|
---|
39 | void CRUT_CLIENT_APIENTRY crutAttachMenu( int button );
|
---|
40 |
|
---|
41 | #ifdef __cplusplus
|
---|
42 | }
|
---|
43 | #endif
|
---|
44 |
|
---|
45 | #endif /* CRUT_CLIENTAPI_H */
|
---|