pub type CrossHairInfo = _CrossHairInfo;Expand description
@}
Aliased Type§
#[repr(C)]pub struct CrossHairInfo {Show 13 fields
pub majorVersion: i16,
pub minorVersion: i16,
pub w: i32,
pub h: i32,
pub privatedata: *mut c_void,
pub userdata: *mut c_void,
pub drawLine: Option<unsafe extern "C" fn(*mut _CrossHairInfo, i32, i32, i32, i32, i32)>,
pub drawLozenge: Option<unsafe extern "C" fn(*mut _CrossHairInfo, i32, i32, i32, i32, i32)>,
pub getMouseState: Option<unsafe extern "C" fn(*mut _CrossHairInfo, *mut i32, *mut i32, *mut i32)>,
pub reserved1: i32,
pub reserved2: i32,
pub reserved3: i32,
pub reserved4: i32,
}Fields§
§majorVersion: i16< for the moment this should be set to 1.
minorVersion: i16< for the moment this should be set to 0.
w: i32Display width of the camera image. This need not to match the size given at setup_image_display_hook
h: i32Display height of the camera image. This need not to match the size given at setup_image_display_hook
privatedata: *mut c_voidPrivate data used by internals of eyelink_draw_cross_hair. This pointer should not be touched externally
userdata: *mut c_voidAttribute to hold any user data. Any data set here untouched by eyelink_draw_cross_hair.
drawLine: Option<unsafe extern "C" fn(*mut _CrossHairInfo, i32, i32, i32, i32, i32)>drawLine shoud draw a line from (x1,y1) -> (x2,y2) with the given color @param[in] x1
drawLozenge: Option<unsafe extern "C" fn(*mut _CrossHairInfo, i32, i32, i32, i32, i32)>drawLozenge shoud draw circle if the width and height are equal. otherwise find the smallest width and draw semi-circles on the longest side at both ends and connect the semi circles with lines.
getMouseState: Option<unsafe extern "C" fn(*mut _CrossHairInfo, *mut i32, *mut i32, *mut i32)>getMouseState shoud fill values for (x,y) with current mouse position and the state = 1 if pressed. the x and y values are respective to top left hand corner of the image
reserved1: i32< for future use
reserved2: i32< for future use
reserved3: i32< for future use
reserved4: i32< for future use