[][src]Struct libeyelink_sys::_CrossHairInfo

#[repr(C)]pub struct _CrossHairInfo {
    pub majorVersion: c_short,
    pub minorVersion: c_short,
    pub w: c_int,
    pub h: c_int,
    pub privatedata: *mut c_void,
    pub userdata: *mut c_void,
    pub drawLine: Option<unsafe extern "C" fn(dt: *mut CrossHairInfo, x1: c_int, y1: c_int, x2: c_int, y2: c_int, colorindex: c_int)>,
    pub drawLozenge: Option<unsafe extern "C" fn(dt: *mut CrossHairInfo, x: c_int, y: c_int, w: c_int, h: c_int, colorindex: c_int)>,
    pub getMouseState: Option<unsafe extern "C" fn(dt: *mut CrossHairInfo, x: *mut c_int, y: *mut c_int, state: *mut c_int)>,
    pub reserved1: c_int,
    pub reserved2: c_int,
    pub reserved3: c_int,
    pub reserved4: c_int,
}

@ingroup display \brief Structure to hold cross hair information.

Structure to hold cross hair information that are needed to draw the cross hair on camera images.

Fields

majorVersion: c_short

< for the moment this should be set to 1.

minorVersion: c_short

< for the moment this should be set to 0.

w: c_int

Display width of the camera image. This need not to match the size given at setup_image_display_hook

h: c_int

Display height of the camera image. This need not to match the size given at setup_image_display_hook

privatedata: *mut c_void

Private data used by internals of eyelink_draw_cross_hair. This pointer should not be touched externally

userdata: *mut c_void

Attribute to hold any user data. Any data set here untouched by eyelink_draw_cross_hair.

drawLine: Option<unsafe extern "C" fn(dt: *mut CrossHairInfo, x1: c_int, y1: c_int, x2: c_int, y2: c_int, colorindex: c_int)>

drawLine shoud draw a line from (x1,y1) -> (x2,y2) with the given color @param[in] x1

drawLozenge: Option<unsafe extern "C" fn(dt: *mut CrossHairInfo, x: c_int, y: c_int, w: c_int, h: c_int, colorindex: c_int)>

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(dt: *mut CrossHairInfo, x: *mut c_int, y: *mut c_int, state: *mut c_int)>

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: c_int

< for future use

reserved2: c_int

< for future use

reserved3: c_int

< for future use

reserved4: c_int

< for future use

Trait Implementations

impl Clone for _CrossHairInfo[src]

impl Copy for _CrossHairInfo[src]

impl Debug for _CrossHairInfo[src]

impl Default for _CrossHairInfo[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.