SR Research Support Site
Macros | Functions | Variables
gdi_expt.h File Reference

Declarations of eyelink_exptkit functions and types. More...

Macros

#define SCREEN_LEFT   dispinfo.left
 
#define SCREEN_TOP   dispinfo.top
 
#define SCREEN_RIGHT   dispinfo.right
 
#define SCREEN_BOTTOM   dispinfo.bottom
 
#define SCRHEIGHT   dispinfo.height
 
#define SCRWIDTH   dispinfo.width
 
#define process_key_messages   gdi_process_key_messages
 
#define bitmap_save_and_backdrop   gdi_bitmap_save_and_backdrop
 
#define bitmap_to_backdrop   gdi_bitmap_to_backdrop
 
#define bitmap_save   gdi_bitmap_save
 
#define message_pump(x)   message_pump()
 
#define CALLTYPE   ELCALLTYPE
 
#define HOOK_ERROR   -1 /* if error occurred */
 
#define HOOK_CONTINUE   0 /* if drawing to continue after return from hook */
 
#define HOOK_NODRAW   1 /* if drawing should not be done after hook */
 
#define CAL_TARG_BEEP   1
 
#define CAL_GOOD_BEEP   0
 
#define CAL_ERR_BEEP   -1
 
#define DC_TARG_BEEP   3
 
#define DC_GOOD_BEEP   2
 
#define DC_ERR_BEEP   -2
 

Functions

void set_calibration_colors (COLORREF fg, COLORREF bg)
 
void set_target_size (UINT16 diameter, UINT16 holesize)
 
void set_cal_sounds (char *ontarget, char *ongood, char *onbad)
 
void set_dcorr_sounds (char *ontarget, char *ongood, char *onbad)
 
INT16 set_camera_image_position (INT16 left, INT16 top, INT16 right, INT16 bottom)
 
void get_display_information (DISPLAYINFO *di)
 
INT16 init_expt_graphics (HWND hwnd, DISPLAYINFO *info)
 
void close_expt_graphics (void)
 
void wait_for_video_refresh (void)
 
UINT16 gdi_process_key_messages (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
 
void wait_for_drawing (HWND hwnd)
 
int gdi_bitmap_save_and_backdrop (HBITMAP hbm, INT16 xs, INT16 ys, INT16 width, INT16 height, char *fname, char *path, INT16 sv_options, INT16 xd, INT16 yd, UINT16 bx_options)
 
int gdi_bitmap_to_backdrop (HBITMAP hbm, INT16 xs, INT16 ys, INT16 width, INT16 height, INT16 xd, INT16 yd, UINT16 bx_options)
 
int gdi_bitmap_save (HBITMAP hbm, INT16 xs, INT16 ys, INT16 width, INT16 height, char *fname, char *path, INT16 sv_options)
 
INT16 set_setup_cal_display_hook (INT16(*hookfn)(void), INT16 options)
 
INT16 set_clear_cal_display_hook (INT16(*hookfn)(HDC hdc), INT16 options)
 
INT16 CALLTYPE set_erase_cal_target_hook (INT16(*hookfn)(HDC hdc), INT16 options)
 
INT16 CALLTYPE set_draw_cal_target_hook (INT16(*hookfn)(HDC hdc, INT16 *x, INT16 *y), INT16 options)
 
INT16 set_exit_cal_display_hook (INT16(*hookfn)(void), INT16 options)
 
INT16 CALLTYPE set_cal_sound_hook (INT16(*hookfn)(INT16 *error), INT16 options)
 
INT16 set_record_abort_hide_hook (INT16(*hookfn)(void), INT16 options)
 
INT16 set_setup_image_display_hook (INT16(*hookfn)(INT16 width, INT16 height), INT16 options)
 
INT16 set_image_title_hook (INT16(*hookfn)(INT16 threshold, char *cam_name), INT16 options)
 
INT16 set_draw_image_line_hook (INT16(*hookfn)(INT16 width, INT16 line, INT16 totlines, byte *pixels), INT16 options)
 
INT16 set_set_image_palette_hook (INT16(*hookfn)(INT16 ncolors, byte r[], byte g[], byte b[]), INT16 options)
 
INT16 set_exit_image_display_hook (INT16(*hookfn)(void), INT16 options)
 
void initialize_gc_window (int wwidth, int wheight, HBITMAP window_bitmap, HBITMAP background_bitmap, HWND window, RECT display_rect, int is_mask, int deadband)
 
void redraw_gc_window (int x, int y)
 
HDC get_window_dc (void)
 
INT16 release_window_dc (HDC hdc)
 

Variables

DISPLAYINFO dispinfo
 

Detailed Description

Declarations of eyelink_exptkit functions and types.

This file will also reference the other EyeLink header files.


Copyright ©2002-2021, SR Research Ltd.