[−][src]Struct libeyelink_sys::_CrossHairInfo
@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]
fn clone(&self) -> _CrossHairInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for _CrossHairInfo
[src]
impl Debug for _CrossHairInfo
[src]
impl Default for _CrossHairInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for _CrossHairInfo
impl !Send for _CrossHairInfo
impl !Sync for _CrossHairInfo
impl Unpin for _CrossHairInfo
impl UnwindSafe for _CrossHairInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,