[][src]Struct libeyelink_sys::HOOKFCNS2

#[repr(C)]pub struct HOOKFCNS2 {
    pub major: c_int,
    pub minor: c_int,
    pub userData: *mut c_void,
    pub setup_cal_display_hook: Option<unsafe extern "C" fn(userData: *mut c_void) -> INT16>,
    pub exit_cal_display_hook: Option<unsafe extern "C" fn(userData: *mut c_void) -> INT16>,
    pub setup_image_display_hook: Option<unsafe extern "C" fn(userData: *mut c_void, width: INT16, height: INT16) -> INT16>,
    pub image_title_hook: Option<unsafe extern "C" fn(userData: *mut c_void, title: *mut c_char) -> INT16>,
    pub draw_image: Option<unsafe extern "C" fn(userData: *mut c_void, width: INT16, height: INT16, pixels: *mut byte) -> INT16>,
    pub exit_image_display_hook: Option<unsafe extern "C" fn(userData: *mut c_void) -> INT16>,
    pub clear_cal_display_hook: Option<unsafe extern "C" fn(userData: *mut c_void) -> INT16>,
    pub erase_cal_target_hook: Option<unsafe extern "C" fn(userData: *mut c_void) -> INT16>,
    pub draw_cal_target_hook: Option<unsafe extern "C" fn(userData: *mut c_void, x: f32, y: f32) -> INT16>,
    pub play_target_beep_hook: Option<unsafe extern "C" fn(userData: *mut c_void, beep_type: EL_CAL_BEEP) -> INT16>,
    pub get_input_key_hook: Option<unsafe extern "C" fn(userData: *mut c_void, event: *mut InputEvent) -> INT16>,
    pub alert_printf_hook: Option<unsafe extern "C" fn(userData: *mut c_void, msg: *const c_char) -> INT16>,
    pub reserved1: c_int,
    pub reserved2: c_int,
    pub reserved3: c_int,
    pub reserved4: c_int,
}

Fields

major: c_intminor: c_intuserData: *mut c_voidsetup_cal_display_hook: Option<unsafe extern "C" fn(userData: *mut c_void) -> INT16>exit_cal_display_hook: Option<unsafe extern "C" fn(userData: *mut c_void) -> INT16>setup_image_display_hook: Option<unsafe extern "C" fn(userData: *mut c_void, width: INT16, height: INT16) -> INT16>image_title_hook: Option<unsafe extern "C" fn(userData: *mut c_void, title: *mut c_char) -> INT16>draw_image: Option<unsafe extern "C" fn(userData: *mut c_void, width: INT16, height: INT16, pixels: *mut byte) -> INT16>exit_image_display_hook: Option<unsafe extern "C" fn(userData: *mut c_void) -> INT16>clear_cal_display_hook: Option<unsafe extern "C" fn(userData: *mut c_void) -> INT16>erase_cal_target_hook: Option<unsafe extern "C" fn(userData: *mut c_void) -> INT16>draw_cal_target_hook: Option<unsafe extern "C" fn(userData: *mut c_void, x: f32, y: f32) -> INT16>play_target_beep_hook: Option<unsafe extern "C" fn(userData: *mut c_void, beep_type: EL_CAL_BEEP) -> INT16>get_input_key_hook: Option<unsafe extern "C" fn(userData: *mut c_void, event: *mut InputEvent) -> INT16>alert_printf_hook: Option<unsafe extern "C" fn(userData: *mut c_void, msg: *const c_char) -> INT16>reserved1: c_intreserved2: c_intreserved3: c_intreserved4: c_int

Trait Implementations

impl Clone for HOOKFCNS2[src]

impl Copy for HOOKFCNS2[src]

impl Debug for HOOKFCNS2[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.