Struct x11_dl::xinput::XInput [] [src]

pub struct XInput {
    pub XAllowDeviceEvents: unsafe extern fn(*mut Display, *mut XDevice, c_int, c_ulong) -> c_int,
    pub XChangeDeviceControl: unsafe extern fn(*mut Display, *mut XDevice, c_int, *mut XDeviceControl) -> c_int,
    pub XChangeDeviceDontPropagateList: unsafe extern fn(*mut Display, c_ulong, c_int, *mut c_ulong, c_int) -> c_int,
    pub XChangeDeviceKeyMapping: unsafe extern fn(*mut Display, *mut XDevice, c_int, c_int, *mut c_ulong, c_int) -> c_int,
    pub XChangeDeviceProperty: unsafe extern fn(*mut Display, *mut XDevice, c_ulong, c_ulong, c_int, c_int, *const c_uchar, c_int),
    pub XChangeFeedbackControl: unsafe extern fn(*mut Display, *mut XDevice, c_ulong, *mut XFeedbackControl) -> c_int,
    pub XChangeKeyboardDevice: unsafe extern fn(*mut Display, *mut XDevice) -> c_int,
    pub XChangePointerDevice: unsafe extern fn(*mut Display, *mut XDevice, c_int, c_int) -> c_int,
    pub XCloseDevice: unsafe extern fn(*mut Display, *mut XDevice) -> c_int,
    pub XDeleteDeviceProperty: unsafe extern fn(*mut Display, *mut XDevice, c_ulong),
    pub XDeviceBell: unsafe extern fn(*mut Display, *mut XDevice, c_ulong, c_ulong, c_int) -> c_int,
    pub XFreeDeviceControl: unsafe extern fn(*mut XDeviceControl),
    pub XFreeDeviceList: unsafe extern fn(*mut XDeviceInfo),
    pub XFreeDeviceMotionEvents: unsafe extern fn(*mut XDeviceTimeCoord),
    pub XFreeDeviceState: unsafe extern fn(*mut XDeviceState),
    pub XFreeFeedbackList: unsafe extern fn(*mut XFeedbackState),
    pub XGetDeviceButtonMapping: unsafe extern fn(*mut Display, *mut XDevice, *mut c_uchar, c_uint) -> c_int,
    pub XGetDeviceControl: unsafe extern fn(*mut Display, *mut XDevice, c_int) -> *mut XDeviceControl,
    pub XGetDeviceDontPropagateList: unsafe extern fn(*mut Display, c_ulong, *mut c_int) -> *mut c_ulong,
    pub XGetDeviceFocus: unsafe extern fn(*mut Display, *mut XDevice, *mut c_ulong, *mut c_int, *mut c_ulong) -> c_int,
    pub XGetDeviceKeyMapping: unsafe extern fn(*mut Display, *mut XDevice, c_uchar, c_int, *mut c_int) -> *mut c_ulong,
    pub XGetDeviceModifierMapping: unsafe extern fn(*mut Display, *mut XDevice) -> *mut XModifierKeymap,
    pub XGetDeviceMotionEvents: unsafe extern fn(*mut Display, *mut XDevice, c_ulong, c_ulong, *mut c_int, *mut c_int, *mut c_int) -> *mut XDeviceTimeCoord,
    pub XGetDeviceProperty: unsafe extern 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 fn(*mut Display, *const c_char) -> *mut XExtensionVersion,
    pub XGetFeedbackControl: unsafe extern fn(*mut Display, *mut XDevice, *mut c_int) -> *mut XFeedbackState,
    pub XGetSelectedExtensionEvents: unsafe extern 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 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 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 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 fn(*mut Display, *mut XDevice, *mut c_int) -> *mut c_ulong,
    pub XListInputDevices: unsafe extern fn(*mut Display, *mut c_int) -> *mut XDeviceInfo,
    pub XOpenDevice: unsafe extern fn(*mut Display, c_ulong) -> *mut XDevice,
    pub XQueryDeviceState: unsafe extern fn(*mut Display, *mut XDevice) -> *mut XDeviceState,
    pub XSelectExtensionEvent: unsafe extern fn(*mut Display, c_ulong, *mut c_ulong, c_int) -> c_int,
    pub XSendExtensionEvent: unsafe extern fn(*mut Display, *mut XDevice, c_ulong, c_int, c_int, *mut c_ulong, *mut XEvent) -> c_int,
    pub XSetDeviceButtonMapping: unsafe extern fn(*mut Display, *mut XDevice, *mut c_uchar, c_int) -> c_int,
    pub XSetDeviceFocus: unsafe extern fn(*mut Display, *mut XDevice, c_ulong, c_int, c_ulong) -> c_int,
    pub XSetDeviceMode: unsafe extern fn(*mut Display, *mut XDevice, c_int) -> c_int,
    pub XSetDeviceModifierMapping: unsafe extern fn(*mut Display, *mut XDevice, *mut XModifierKeymap) -> c_int,
    pub XSetDeviceValuators: unsafe extern fn(*mut Display, *mut XDevice, *mut c_int, c_int, c_int) -> c_int,
    pub XUngrabDevice: unsafe extern fn(*mut Display, *mut XDevice, c_ulong) -> c_int,
    pub XUngrabDeviceButton: unsafe extern fn(*mut Display, *mut XDevice, c_uint, c_uint, *mut XDevice, c_ulong) -> c_int,
    pub XUngrabDeviceKey: unsafe extern fn(*mut Display, *mut XDevice, c_uint, c_uint, *mut XDevice, c_ulong) -> c_int,
    // some fields omitted
}

Fields

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

Methods

impl XInput
[src]

fn open() -> Result<XInputOpenError>

Trait Implementations

impl Send for XInput
[src]

impl Sync for XInput
[src]