sgl

diff src/cb.c @ 6:0cb438c86b98

X11 sounds about ready
author John Tsiombikas <nuclear@siggraph.org>
date Fri, 13 May 2011 09:44:21 +0300
parents 0570e27e5ebc
children
line diff
     1.1 --- a/src/cb.c	Fri May 13 07:49:47 2011 +0300
     1.2 +++ b/src/cb.c	Fri May 13 09:44:21 2011 +0300
     1.3 @@ -64,6 +64,53 @@
     1.4  	return cb->func[idx];
     1.5  }
     1.6  
     1.7 +
     1.8 +void sgl_create_callback(sgl_create_callback_t func)
     1.9 +{
    1.10 +	sgl_set_callback(SGL_CREATE, func);
    1.11 +}
    1.12 +
    1.13 +void sgl_close_callback(sgl_close_callback_t func)
    1.14 +{
    1.15 +	sgl_set_callback(SGL_CLOSE, func);
    1.16 +}
    1.17 +
    1.18 +void sgl_display_callback(sgl_display_callback_t func)
    1.19 +{
    1.20 +	sgl_set_callback(SGL_DISPLAY, func);
    1.21 +}
    1.22 +
    1.23 +void sgl_reshape_callback(sgl_reshape_callback_t func)
    1.24 +{
    1.25 +	sgl_set_callback(SGL_RESHAPE, func);
    1.26 +}
    1.27 +
    1.28 +void sgl_keyboard_callback(sgl_keyboard_callback_t func)
    1.29 +{
    1.30 +	sgl_set_callback(SGL_KEYBOARD, func);
    1.31 +}
    1.32 +
    1.33 +void sgl_mouse_callback(sgl_mouse_callback_t func)
    1.34 +{
    1.35 +	sgl_set_callback(SGL_MOUSE, func);
    1.36 +}
    1.37 +
    1.38 +void sgl_motion_callback(sgl_motion_callback_t func)
    1.39 +{
    1.40 +	sgl_set_callback(SGL_MOTION, func);
    1.41 +}
    1.42 +
    1.43 +void sgl_passive_callback(sgl_passive_callback_t func)
    1.44 +{
    1.45 +	sgl_set_callback(SGL_PASSIVE, func);
    1.46 +}
    1.47 +
    1.48 +void sgl_idle_callback(sgl_idle_callback_t func)
    1.49 +{
    1.50 +	sgl_set_callback(SGL_IDLE, func);
    1.51 +}
    1.52 +
    1.53 +
    1.54  /* notify the window system module as to which events are active */
    1.55  static void notify_wsys(void)
    1.56  {