[−][src]Function libeyelink_sys::setup_graphic_hook_functions_V2
pub unsafe extern "C" fn setup_graphic_hook_functions_V2(
hooks: *mut HOOKFCNS2
) -> INT16
@ingroup display Primary function to setup display graphics hook functions of the second revision of the interface. One of the major difference between this and setup_graphic_hook_functions is, this has fewer functions to implement also, takes extra parameters like the major and minor versions for future enhancements.
\b Example:
@code INT16 ELCALLTYPE init_expt_graphics(HWND hwnd, DISPLAYINFO *info) { HOOKFCNS2 fcns; memset(&fcns,0,sizeof(fcns)); fcns.major = 1; fcns.minor = 0; fcns.userData = ts; fcns.draw_image = draw_image; fcns.exit_image_display_hook= exit_image_display; fcns.setup_image_display_hook = setup_image_display; fcns.setup_cal_display_hook = setup_cal_display; fcns.clear_cal_display_hook = clear_display; fcns.erase_cal_target_hook = clear_display; fcns.draw_cal_target_hook = draw_cal_target; fcns.image_title_hook = image_title; fcns.get_input_key_hook = get_input_key; fcns.alert_printf_hook = alert_printf_hook; return setup_graphic_hook_functions_V2(&fcns); } @endcode