Struct x11_dl::xinput::XInput

source ·
pub struct XInput {
Show 45 fields _private: (), pub XAllowDeviceEvents: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_int, _: c_ulong) -> c_int, pub XChangeDeviceControl: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_int, _: *mut XDeviceControl) -> c_int, pub XChangeDeviceDontPropagateList: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_int, _: *mut c_ulong, _: c_int) -> c_int, pub XChangeDeviceKeyMapping: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_int, _: c_int, _: *mut c_ulong, _: c_int) -> c_int, pub XChangeDeviceProperty: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_ulong, _: c_int, _: c_int, _: *const c_uchar, _: c_int), pub XChangeFeedbackControl: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: *mut XFeedbackControl) -> c_int, pub XChangeKeyboardDevice: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice) -> c_int, pub XChangePointerDevice: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_int, _: c_int) -> c_int, pub XCloseDevice: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice) -> c_int, pub XDeleteDeviceProperty: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong), pub XDeviceBell: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_ulong, _: c_int) -> c_int, pub XFreeDeviceControl: unsafe extern "C" fn(_: *mut XDeviceControl), pub XFreeDeviceList: unsafe extern "C" fn(_: *mut XDeviceInfo), pub XFreeDeviceMotionEvents: unsafe extern "C" fn(_: *mut XDeviceTimeCoord), pub XFreeDeviceState: unsafe extern "C" fn(_: *mut XDeviceState), pub XFreeFeedbackList: unsafe extern "C" fn(_: *mut XFeedbackState), pub XGetDeviceButtonMapping: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut c_uchar, _: c_uint) -> c_int, pub XGetDeviceControl: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_int) -> *mut XDeviceControl, pub XGetDeviceDontPropagateList: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: *mut c_int) -> *mut c_ulong, pub XGetDeviceFocus: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut c_ulong, _: *mut c_int, _: *mut c_ulong) -> c_int, pub XGetDeviceKeyMapping: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_uchar, _: c_int, _: *mut c_int) -> *mut c_ulong, pub XGetDeviceModifierMapping: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice) -> *mut XModifierKeymap, pub XGetDeviceMotionEvents: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_ulong, _: *mut c_int, _: *mut c_int, _: *mut c_int) -> *mut XDeviceTimeCoord, pub XGetDeviceProperty: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_long, _: c_long, _: c_int, _: c_ulong, _: *mut c_ulong, _: *mut c_int, _: *mut c_ulong, _: *mut c_ulong, _: *mut *mut c_uchar) -> c_int, pub XGetExtensionVersion: unsafe extern "C" fn(_: *mut Display, _: *const c_char) -> *mut XExtensionVersion, pub XGetFeedbackControl: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut c_int) -> *mut XFeedbackState, pub XGetSelectedExtensionEvents: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: *mut c_int, _: *mut *mut c_ulong, _: *mut c_int, _: *mut *mut c_ulong) -> c_int, pub XGrabDevice: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_int, _: c_int, _: *mut c_ulong, _: c_int, _: c_int, _: c_ulong) -> c_int, pub XGrabDeviceButton: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_uint, _: c_uint, _: *mut XDevice, _: c_ulong, _: c_int, _: c_uint, _: *mut c_ulong, _: c_int, _: c_int) -> c_int, pub XGrabDeviceKey: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_uint, _: c_uint, _: *mut XDevice, _: c_ulong, _: c_int, _: c_uint, _: *mut c_ulong, _: c_int, _: c_int) -> c_int, pub XListDeviceProperties: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut c_int) -> *mut c_ulong, pub XListInputDevices: unsafe extern "C" fn(_: *mut Display, _: *mut c_int) -> *mut XDeviceInfo, pub XOpenDevice: unsafe extern "C" fn(_: *mut Display, _: c_ulong) -> *mut XDevice, pub XQueryDeviceState: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice) -> *mut XDeviceState, pub XSelectExtensionEvent: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: *mut c_ulong, _: c_int) -> c_int, pub XSendExtensionEvent: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_int, _: c_int, _: *mut c_ulong, _: *mut XEvent) -> c_int, pub XSetDeviceButtonMapping: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut c_uchar, _: c_int) -> c_int, pub XSetDeviceFocus: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_int, _: c_ulong) -> c_int, pub XSetDeviceMode: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_int) -> c_int, pub XSetDeviceModifierMapping: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut XModifierKeymap) -> c_int, pub XSetDeviceValuators: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut c_int, _: c_int, _: c_int) -> c_int, pub XUngrabDevice: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong) -> c_int, pub XUngrabDeviceButton: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_uint, _: c_uint, _: *mut XDevice, _: c_ulong) -> c_int, pub XUngrabDeviceKey: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_uint, _: c_uint, _: *mut XDevice, _: c_ulong) -> c_int,
}

Fields§

§_private: ()§XAllowDeviceEvents: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_int, _: c_ulong) -> c_int§XChangeDeviceControl: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_int, _: *mut XDeviceControl) -> c_int§XChangeDeviceDontPropagateList: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_int, _: *mut c_ulong, _: c_int) -> c_int§XChangeDeviceKeyMapping: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_int, _: c_int, _: *mut c_ulong, _: c_int) -> c_int§XChangeDeviceProperty: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_ulong, _: c_int, _: c_int, _: *const c_uchar, _: c_int)§XChangeFeedbackControl: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: *mut XFeedbackControl) -> c_int§XChangeKeyboardDevice: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice) -> c_int§XChangePointerDevice: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_int, _: c_int) -> c_int§XCloseDevice: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice) -> c_int§XDeleteDeviceProperty: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong)§XDeviceBell: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_ulong, _: c_int) -> c_int§XFreeDeviceControl: unsafe extern "C" fn(_: *mut XDeviceControl)§XFreeDeviceList: unsafe extern "C" fn(_: *mut XDeviceInfo)§XFreeDeviceMotionEvents: unsafe extern "C" fn(_: *mut XDeviceTimeCoord)§XFreeDeviceState: unsafe extern "C" fn(_: *mut XDeviceState)§XFreeFeedbackList: unsafe extern "C" fn(_: *mut XFeedbackState)§XGetDeviceButtonMapping: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut c_uchar, _: c_uint) -> c_int§XGetDeviceControl: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_int) -> *mut XDeviceControl§XGetDeviceDontPropagateList: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: *mut c_int) -> *mut c_ulong§XGetDeviceFocus: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut c_ulong, _: *mut c_int, _: *mut c_ulong) -> c_int§XGetDeviceKeyMapping: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_uchar, _: c_int, _: *mut c_int) -> *mut c_ulong§XGetDeviceModifierMapping: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice) -> *mut XModifierKeymap§XGetDeviceMotionEvents: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_ulong, _: *mut c_int, _: *mut c_int, _: *mut c_int) -> *mut XDeviceTimeCoord§XGetDeviceProperty: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_long, _: c_long, _: c_int, _: c_ulong, _: *mut c_ulong, _: *mut c_int, _: *mut c_ulong, _: *mut c_ulong, _: *mut *mut c_uchar) -> c_int§XGetExtensionVersion: unsafe extern "C" fn(_: *mut Display, _: *const c_char) -> *mut XExtensionVersion§XGetFeedbackControl: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut c_int) -> *mut XFeedbackState§XGetSelectedExtensionEvents: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: *mut c_int, _: *mut *mut c_ulong, _: *mut c_int, _: *mut *mut c_ulong) -> c_int§XGrabDevice: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_int, _: c_int, _: *mut c_ulong, _: c_int, _: c_int, _: c_ulong) -> c_int§XGrabDeviceButton: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_uint, _: c_uint, _: *mut XDevice, _: c_ulong, _: c_int, _: c_uint, _: *mut c_ulong, _: c_int, _: c_int) -> c_int§XGrabDeviceKey: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_uint, _: c_uint, _: *mut XDevice, _: c_ulong, _: c_int, _: c_uint, _: *mut c_ulong, _: c_int, _: c_int) -> c_int§XListDeviceProperties: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut c_int) -> *mut c_ulong§XListInputDevices: unsafe extern "C" fn(_: *mut Display, _: *mut c_int) -> *mut XDeviceInfo§XOpenDevice: unsafe extern "C" fn(_: *mut Display, _: c_ulong) -> *mut XDevice§XQueryDeviceState: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice) -> *mut XDeviceState§XSelectExtensionEvent: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: *mut c_ulong, _: c_int) -> c_int§XSendExtensionEvent: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_int, _: c_int, _: *mut c_ulong, _: *mut XEvent) -> c_int§XSetDeviceButtonMapping: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut c_uchar, _: c_int) -> c_int§XSetDeviceFocus: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong, _: c_int, _: c_ulong) -> c_int§XSetDeviceMode: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_int) -> c_int§XSetDeviceModifierMapping: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut XModifierKeymap) -> c_int§XSetDeviceValuators: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: *mut c_int, _: c_int, _: c_int) -> c_int§XUngrabDevice: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_ulong) -> c_int§XUngrabDeviceButton: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_uint, _: c_uint, _: *mut XDevice, _: c_ulong) -> c_int§XUngrabDeviceKey: unsafe extern "C" fn(_: *mut Display, _: *mut XDevice, _: c_uint, _: c_uint, _: *mut XDevice, _: c_ulong) -> c_int

Implementations§

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.