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)
 
int set_calibration_monitor_index (int monitor_index)
 
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)
 
const char * get_output_folder (void)
 
int set_output_folder (const char *path)
 
int copy_resource_to_output_folder (const char *resource)
 
int open_output_folder (void)
 
int initialize_folder (const char *exe_path, const char *output_folder, int create_output_folder)
 

Variables

DISPLAYINFO dispinfo
 

Detailed Description

Declarations of eyelink_exptkit functions and types.

Copyright (c) 1996-2023, SR Research Ltd., All Rights Reserved

For use by SR Research licencees only. Redistribution and use in source and binary forms, with or without modification, are NOT permitted.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither name of SR Research Ltd nor the name of contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

This file will also reference the other EyeLink header files.


Copyright ©2002-2023, SR Research Ltd.