x11_dl::xlib

Union XEvent

Source
#[repr(C)]
pub union XEvent {
Show 44 fields pub type_: c_int, pub any: XAnyEvent, pub button: XButtonEvent, pub circulate: XCirculateEvent, pub circulate_request: XCirculateRequestEvent, pub client_message: XClientMessageEvent, pub colormap: XColormapEvent, pub configure: XConfigureEvent, pub configure_request: XConfigureRequestEvent, pub create_window: XCreateWindowEvent, pub crossing: XCrossingEvent, pub destroy_window: XDestroyWindowEvent, pub error: XErrorEvent, pub expose: XExposeEvent, pub focus_change: XFocusChangeEvent, pub generic_event_cookie: XGenericEventCookie, pub graphics_expose: XGraphicsExposeEvent, pub gravity: XGravityEvent, pub key: XKeyEvent, pub keymap: XKeymapEvent, pub map: XMapEvent, pub mapping: XMappingEvent, pub map_request: XMapRequestEvent, pub motion: XMotionEvent, pub no_expose: XNoExposeEvent, pub property: XPropertyEvent, pub reparent: XReparentEvent, pub resize_request: XResizeRequestEvent, pub selection_clear: XSelectionClearEvent, pub selection: XSelectionEvent, pub selection_request: XSelectionRequestEvent, pub unmap: XUnmapEvent, pub visibility: XVisibilityEvent, pub pad: [c_long; 24], pub xf86vm_notify: XF86VidModeNotifyEvent, pub xrr_screen_change_notify: XRRScreenChangeNotifyEvent, pub xrr_notify: XRRNotifyEvent, pub xrr_output_change_notify: XRROutputChangeNotifyEvent, pub xrr_crtc_change_notify: XRRCrtcChangeNotifyEvent, pub xrr_output_property_notify: XRROutputPropertyNotifyEvent, pub xrr_provider_change_notify: XRRProviderChangeNotifyEvent, pub xrr_provider_property_notify: XRRProviderPropertyNotifyEvent, pub xrr_resource_change_notify: XRRResourceChangeNotifyEvent, pub xss_notify: XScreenSaverNotifyEvent,
}

Fields§

§type_: c_int§any: XAnyEvent§button: XButtonEvent§circulate: XCirculateEvent§circulate_request: XCirculateRequestEvent§client_message: XClientMessageEvent§colormap: XColormapEvent§configure: XConfigureEvent§configure_request: XConfigureRequestEvent§create_window: XCreateWindowEvent§crossing: XCrossingEvent§destroy_window: XDestroyWindowEvent§error: XErrorEvent§expose: XExposeEvent§focus_change: XFocusChangeEvent§generic_event_cookie: XGenericEventCookie§graphics_expose: XGraphicsExposeEvent§gravity: XGravityEvent§key: XKeyEvent§keymap: XKeymapEvent§map: XMapEvent§mapping: XMappingEvent§map_request: XMapRequestEvent§motion: XMotionEvent§no_expose: XNoExposeEvent§property: XPropertyEvent§reparent: XReparentEvent§resize_request: XResizeRequestEvent§selection_clear: XSelectionClearEvent§selection: XSelectionEvent§selection_request: XSelectionRequestEvent§unmap: XUnmapEvent§visibility: XVisibilityEvent§pad: [c_long; 24]§xf86vm_notify: XF86VidModeNotifyEvent§xrr_screen_change_notify: XRRScreenChangeNotifyEvent§xrr_notify: XRRNotifyEvent§xrr_output_change_notify: XRROutputChangeNotifyEvent§xrr_crtc_change_notify: XRRCrtcChangeNotifyEvent§xrr_output_property_notify: XRROutputPropertyNotifyEvent§xrr_provider_change_notify: XRRProviderChangeNotifyEvent§xrr_provider_property_notify: XRRProviderPropertyNotifyEvent§xrr_resource_change_notify: XRRResourceChangeNotifyEvent§xss_notify: XScreenSaverNotifyEvent

Implementations§

Source§

impl XEvent

Source

pub fn get_type(&self) -> c_int

Examples found in repository?
examples/hello-world-dl.rs (line 78)
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
fn main() {
    unsafe {
        // Load Xlib library.
        let xlib = xlib::Xlib::open().unwrap();

        // Open display connection.
        let display = (xlib.XOpenDisplay)(ptr::null());

        if display.is_null() {
            panic!("XOpenDisplay failed");
        }

        // Create window.
        let screen = (xlib.XDefaultScreen)(display);
        let root = (xlib.XRootWindow)(display, screen);

        let mut attributes: xlib::XSetWindowAttributes = mem::MaybeUninit::uninit().assume_init();
        attributes.background_pixel = (xlib.XWhitePixel)(display, screen);

        let window = (xlib.XCreateWindow)(
            display,
            root,
            0,
            0,
            400,
            300,
            0,
            0,
            xlib::InputOutput as c_uint,
            ptr::null_mut(),
            xlib::CWBackPixel,
            &mut attributes,
        );

        // Set window title.
        let title_str = CString::new("hello-world").unwrap();
        (xlib.XStoreName)(display, window, title_str.as_ptr() as *mut c_char);

        // Hook close requests.
        let wm_protocols_str = CString::new("WM_PROTOCOLS").unwrap();
        let wm_delete_window_str = CString::new("WM_DELETE_WINDOW").unwrap();

        let wm_protocols = (xlib.XInternAtom)(display, wm_protocols_str.as_ptr(), xlib::False);
        let wm_delete_window =
            (xlib.XInternAtom)(display, wm_delete_window_str.as_ptr(), xlib::False);

        let mut protocols = [wm_delete_window];

        (xlib.XSetWMProtocols)(
            display,
            window,
            protocols.as_mut_ptr(),
            protocols.len() as c_int,
        );

        // Show window.
        (xlib.XMapWindow)(display, window);

        // Main loop.
        let mut event: xlib::XEvent = mem::MaybeUninit::uninit().assume_init();

        loop {
            (xlib.XNextEvent)(display, &mut event);

            match event.get_type() {
                xlib::ClientMessage => {
                    let xclient = xlib::XClientMessageEvent::from(event);

                    if xclient.message_type == wm_protocols && xclient.format == 32 {
                        let protocol = xclient.data.get_long(0) as xlib::Atom;

                        if protocol == wm_delete_window {
                            break;
                        }
                    }
                }

                _ => (),
            }
        }

        // Shut down.
        (xlib.XCloseDisplay)(display);
    }
}

Trait Implementations§

Source§

impl AsMut<XAnyEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XAnyEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XButtonEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XButtonEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XCirculateEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XCirculateEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XCirculateRequestEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XCirculateRequestEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XClientMessageEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XClientMessageEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XColormapEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XColormapEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XConfigureEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XConfigureEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XConfigureRequestEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XConfigureRequestEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XCreateWindowEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XCreateWindowEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XCrossingEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XCrossingEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XDestroyWindowEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XDestroyWindowEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XErrorEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XErrorEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XExposeEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XExposeEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XF86VidModeNotifyEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XF86VidModeNotifyEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XFocusChangeEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XFocusChangeEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XGenericEventCookie> for XEvent

Source§

fn as_mut(&mut self) -> &mut XGenericEventCookie

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XGraphicsExposeEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XGraphicsExposeEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XGravityEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XGravityEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XKeyEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XKeyEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XKeymapEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XKeymapEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XMapEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XMapEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XMapRequestEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XMapRequestEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XMappingEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XMappingEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XMotionEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XMotionEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XNoExposeEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XNoExposeEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XPropertyEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XPropertyEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XRRCrtcChangeNotifyEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XRRCrtcChangeNotifyEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XRRNotifyEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XRRNotifyEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XRROutputChangeNotifyEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XRROutputChangeNotifyEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XRROutputPropertyNotifyEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XRROutputPropertyNotifyEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XRRProviderChangeNotifyEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XRRProviderChangeNotifyEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XRRProviderPropertyNotifyEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XRRProviderPropertyNotifyEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XRRResourceChangeNotifyEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XRRResourceChangeNotifyEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XRRScreenChangeNotifyEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XRRScreenChangeNotifyEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XReparentEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XReparentEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XResizeRequestEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XResizeRequestEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XScreenSaverNotifyEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XScreenSaverNotifyEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XSelectionClearEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XSelectionClearEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XSelectionEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XSelectionEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XSelectionRequestEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XSelectionRequestEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XUnmapEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XUnmapEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsMut<XVisibilityEvent> for XEvent

Source§

fn as_mut(&mut self) -> &mut XVisibilityEvent

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl AsRef<XAnyEvent> for XEvent

Source§

fn as_ref(&self) -> &XAnyEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XButtonEvent> for XEvent

Source§

fn as_ref(&self) -> &XButtonEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XCirculateEvent> for XEvent

Source§

fn as_ref(&self) -> &XCirculateEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XCirculateRequestEvent> for XEvent

Source§

fn as_ref(&self) -> &XCirculateRequestEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XClientMessageEvent> for XEvent

Source§

fn as_ref(&self) -> &XClientMessageEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XColormapEvent> for XEvent

Source§

fn as_ref(&self) -> &XColormapEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XConfigureEvent> for XEvent

Source§

fn as_ref(&self) -> &XConfigureEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XConfigureRequestEvent> for XEvent

Source§

fn as_ref(&self) -> &XConfigureRequestEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XCreateWindowEvent> for XEvent

Source§

fn as_ref(&self) -> &XCreateWindowEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XCrossingEvent> for XEvent

Source§

fn as_ref(&self) -> &XCrossingEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XDestroyWindowEvent> for XEvent

Source§

fn as_ref(&self) -> &XDestroyWindowEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XErrorEvent> for XEvent

Source§

fn as_ref(&self) -> &XErrorEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XExposeEvent> for XEvent

Source§

fn as_ref(&self) -> &XExposeEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XF86VidModeNotifyEvent> for XEvent

Source§

fn as_ref(&self) -> &XF86VidModeNotifyEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XFocusChangeEvent> for XEvent

Source§

fn as_ref(&self) -> &XFocusChangeEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XGenericEventCookie> for XEvent

Source§

fn as_ref(&self) -> &XGenericEventCookie

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XGraphicsExposeEvent> for XEvent

Source§

fn as_ref(&self) -> &XGraphicsExposeEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XGravityEvent> for XEvent

Source§

fn as_ref(&self) -> &XGravityEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XKeyEvent> for XEvent

Source§

fn as_ref(&self) -> &XKeyEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XKeymapEvent> for XEvent

Source§

fn as_ref(&self) -> &XKeymapEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XMapEvent> for XEvent

Source§

fn as_ref(&self) -> &XMapEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XMapRequestEvent> for XEvent

Source§

fn as_ref(&self) -> &XMapRequestEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XMappingEvent> for XEvent

Source§

fn as_ref(&self) -> &XMappingEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XMotionEvent> for XEvent

Source§

fn as_ref(&self) -> &XMotionEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XNoExposeEvent> for XEvent

Source§

fn as_ref(&self) -> &XNoExposeEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XPropertyEvent> for XEvent

Source§

fn as_ref(&self) -> &XPropertyEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XRRCrtcChangeNotifyEvent> for XEvent

Source§

fn as_ref(&self) -> &XRRCrtcChangeNotifyEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XRRNotifyEvent> for XEvent

Source§

fn as_ref(&self) -> &XRRNotifyEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XRROutputChangeNotifyEvent> for XEvent

Source§

fn as_ref(&self) -> &XRROutputChangeNotifyEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XRROutputPropertyNotifyEvent> for XEvent

Source§

fn as_ref(&self) -> &XRROutputPropertyNotifyEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XRRProviderChangeNotifyEvent> for XEvent

Source§

fn as_ref(&self) -> &XRRProviderChangeNotifyEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XRRProviderPropertyNotifyEvent> for XEvent

Source§

fn as_ref(&self) -> &XRRProviderPropertyNotifyEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XRRResourceChangeNotifyEvent> for XEvent

Source§

fn as_ref(&self) -> &XRRResourceChangeNotifyEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XRRScreenChangeNotifyEvent> for XEvent

Source§

fn as_ref(&self) -> &XRRScreenChangeNotifyEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XReparentEvent> for XEvent

Source§

fn as_ref(&self) -> &XReparentEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XResizeRequestEvent> for XEvent

Source§

fn as_ref(&self) -> &XResizeRequestEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XScreenSaverNotifyEvent> for XEvent

Source§

fn as_ref(&self) -> &XScreenSaverNotifyEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XSelectionClearEvent> for XEvent

Source§

fn as_ref(&self) -> &XSelectionClearEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XSelectionEvent> for XEvent

Source§

fn as_ref(&self) -> &XSelectionEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XSelectionRequestEvent> for XEvent

Source§

fn as_ref(&self) -> &XSelectionRequestEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XUnmapEvent> for XEvent

Source§

fn as_ref(&self) -> &XUnmapEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<XVisibilityEvent> for XEvent

Source§

fn as_ref(&self) -> &XVisibilityEvent

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for XEvent

Source§

fn clone(&self) -> XEvent

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for XEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> From<&'a XAnyEvent> for XEvent

Source§

fn from(other: &'a XAnyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XButtonEvent> for XEvent

Source§

fn from(other: &'a XButtonEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XCirculateEvent> for XEvent

Source§

fn from(other: &'a XCirculateEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XCirculateRequestEvent> for XEvent

Source§

fn from(other: &'a XCirculateRequestEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XClientMessageEvent> for XEvent

Source§

fn from(other: &'a XClientMessageEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XColormapEvent> for XEvent

Source§

fn from(other: &'a XColormapEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XConfigureEvent> for XEvent

Source§

fn from(other: &'a XConfigureEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XConfigureRequestEvent> for XEvent

Source§

fn from(other: &'a XConfigureRequestEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XCreateWindowEvent> for XEvent

Source§

fn from(other: &'a XCreateWindowEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XCrossingEvent> for XEvent

Source§

fn from(other: &'a XCrossingEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XDestroyWindowEvent> for XEvent

Source§

fn from(other: &'a XDestroyWindowEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XErrorEvent> for XEvent

Source§

fn from(other: &'a XErrorEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XAnyEvent

Source§

fn from(xevent: &'a XEvent) -> XAnyEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XButtonEvent

Source§

fn from(xevent: &'a XEvent) -> XButtonEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XCirculateEvent

Source§

fn from(xevent: &'a XEvent) -> XCirculateEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XCirculateRequestEvent

Source§

fn from(xevent: &'a XEvent) -> XCirculateRequestEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XClientMessageEvent

Source§

fn from(xevent: &'a XEvent) -> XClientMessageEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XColormapEvent

Source§

fn from(xevent: &'a XEvent) -> XColormapEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XConfigureEvent

Source§

fn from(xevent: &'a XEvent) -> XConfigureEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XConfigureRequestEvent

Source§

fn from(xevent: &'a XEvent) -> XConfigureRequestEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XCreateWindowEvent

Source§

fn from(xevent: &'a XEvent) -> XCreateWindowEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XCrossingEvent

Source§

fn from(xevent: &'a XEvent) -> XCrossingEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XDestroyWindowEvent

Source§

fn from(xevent: &'a XEvent) -> XDestroyWindowEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XErrorEvent

Source§

fn from(xevent: &'a XEvent) -> XErrorEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XExposeEvent

Source§

fn from(xevent: &'a XEvent) -> XExposeEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XF86VidModeNotifyEvent

Source§

fn from(xevent: &'a XEvent) -> XF86VidModeNotifyEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XFocusChangeEvent

Source§

fn from(xevent: &'a XEvent) -> XFocusChangeEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XGenericEventCookie

Source§

fn from(xevent: &'a XEvent) -> XGenericEventCookie

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XGraphicsExposeEvent

Source§

fn from(xevent: &'a XEvent) -> XGraphicsExposeEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XGravityEvent

Source§

fn from(xevent: &'a XEvent) -> XGravityEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XKeyEvent

Source§

fn from(xevent: &'a XEvent) -> XKeyEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XKeymapEvent

Source§

fn from(xevent: &'a XEvent) -> XKeymapEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XMapEvent

Source§

fn from(xevent: &'a XEvent) -> XMapEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XMapRequestEvent

Source§

fn from(xevent: &'a XEvent) -> XMapRequestEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XMappingEvent

Source§

fn from(xevent: &'a XEvent) -> XMappingEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XMotionEvent

Source§

fn from(xevent: &'a XEvent) -> XMotionEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XNoExposeEvent

Source§

fn from(xevent: &'a XEvent) -> XNoExposeEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XPropertyEvent

Source§

fn from(xevent: &'a XEvent) -> XPropertyEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XRRCrtcChangeNotifyEvent

Source§

fn from(xevent: &'a XEvent) -> XRRCrtcChangeNotifyEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XRRNotifyEvent

Source§

fn from(xevent: &'a XEvent) -> XRRNotifyEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XRROutputChangeNotifyEvent

Source§

fn from(xevent: &'a XEvent) -> XRROutputChangeNotifyEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XRROutputPropertyNotifyEvent

Source§

fn from(xevent: &'a XEvent) -> XRROutputPropertyNotifyEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XRRProviderChangeNotifyEvent

Source§

fn from(xevent: &'a XEvent) -> XRRProviderChangeNotifyEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XRRProviderPropertyNotifyEvent

Source§

fn from(xevent: &'a XEvent) -> XRRProviderPropertyNotifyEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XRRResourceChangeNotifyEvent

Source§

fn from(xevent: &'a XEvent) -> XRRResourceChangeNotifyEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XRRScreenChangeNotifyEvent

Source§

fn from(xevent: &'a XEvent) -> XRRScreenChangeNotifyEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XReparentEvent

Source§

fn from(xevent: &'a XEvent) -> XReparentEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XResizeRequestEvent

Source§

fn from(xevent: &'a XEvent) -> XResizeRequestEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XScreenSaverNotifyEvent

Source§

fn from(xevent: &'a XEvent) -> XScreenSaverNotifyEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XSelectionClearEvent

Source§

fn from(xevent: &'a XEvent) -> XSelectionClearEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XSelectionEvent

Source§

fn from(xevent: &'a XEvent) -> XSelectionEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XSelectionRequestEvent

Source§

fn from(xevent: &'a XEvent) -> XSelectionRequestEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XUnmapEvent

Source§

fn from(xevent: &'a XEvent) -> XUnmapEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XEvent> for XVisibilityEvent

Source§

fn from(xevent: &'a XEvent) -> XVisibilityEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XExposeEvent> for XEvent

Source§

fn from(other: &'a XExposeEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XF86VidModeNotifyEvent> for XEvent

Source§

fn from(other: &'a XF86VidModeNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XFocusChangeEvent> for XEvent

Source§

fn from(other: &'a XFocusChangeEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XGenericEventCookie> for XEvent

Source§

fn from(other: &'a XGenericEventCookie) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XGraphicsExposeEvent> for XEvent

Source§

fn from(other: &'a XGraphicsExposeEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XGravityEvent> for XEvent

Source§

fn from(other: &'a XGravityEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XKeyEvent> for XEvent

Source§

fn from(other: &'a XKeyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XKeymapEvent> for XEvent

Source§

fn from(other: &'a XKeymapEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XMapEvent> for XEvent

Source§

fn from(other: &'a XMapEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XMapRequestEvent> for XEvent

Source§

fn from(other: &'a XMapRequestEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XMappingEvent> for XEvent

Source§

fn from(other: &'a XMappingEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XMotionEvent> for XEvent

Source§

fn from(other: &'a XMotionEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XNoExposeEvent> for XEvent

Source§

fn from(other: &'a XNoExposeEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XPropertyEvent> for XEvent

Source§

fn from(other: &'a XPropertyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XRRCrtcChangeNotifyEvent> for XEvent

Source§

fn from(other: &'a XRRCrtcChangeNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XRRNotifyEvent> for XEvent

Source§

fn from(other: &'a XRRNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XRROutputChangeNotifyEvent> for XEvent

Source§

fn from(other: &'a XRROutputChangeNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XRROutputPropertyNotifyEvent> for XEvent

Source§

fn from(other: &'a XRROutputPropertyNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XRRProviderChangeNotifyEvent> for XEvent

Source§

fn from(other: &'a XRRProviderChangeNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XRRProviderPropertyNotifyEvent> for XEvent

Source§

fn from(other: &'a XRRProviderPropertyNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XRRResourceChangeNotifyEvent> for XEvent

Source§

fn from(other: &'a XRRResourceChangeNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XRRScreenChangeNotifyEvent> for XEvent

Source§

fn from(other: &'a XRRScreenChangeNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XReparentEvent> for XEvent

Source§

fn from(other: &'a XReparentEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XResizeRequestEvent> for XEvent

Source§

fn from(other: &'a XResizeRequestEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XScreenSaverNotifyEvent> for XEvent

Source§

fn from(other: &'a XScreenSaverNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XSelectionClearEvent> for XEvent

Source§

fn from(other: &'a XSelectionClearEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XSelectionEvent> for XEvent

Source§

fn from(other: &'a XSelectionEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XSelectionRequestEvent> for XEvent

Source§

fn from(other: &'a XSelectionRequestEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XUnmapEvent> for XEvent

Source§

fn from(other: &'a XUnmapEvent) -> XEvent

Converts to this type from the input type.
Source§

impl<'a> From<&'a XVisibilityEvent> for XEvent

Source§

fn from(other: &'a XVisibilityEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XAnyEvent> for XEvent

Source§

fn from(other: XAnyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XButtonEvent> for XEvent

Source§

fn from(other: XButtonEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XCirculateEvent> for XEvent

Source§

fn from(other: XCirculateEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XCirculateRequestEvent> for XEvent

Source§

fn from(other: XCirculateRequestEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XClientMessageEvent> for XEvent

Source§

fn from(other: XClientMessageEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XColormapEvent> for XEvent

Source§

fn from(other: XColormapEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XConfigureEvent> for XEvent

Source§

fn from(other: XConfigureEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XConfigureRequestEvent> for XEvent

Source§

fn from(other: XConfigureRequestEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XCreateWindowEvent> for XEvent

Source§

fn from(other: XCreateWindowEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XCrossingEvent> for XEvent

Source§

fn from(other: XCrossingEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XDestroyWindowEvent> for XEvent

Source§

fn from(other: XDestroyWindowEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XErrorEvent> for XEvent

Source§

fn from(other: XErrorEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XAnyEvent

Source§

fn from(xevent: XEvent) -> XAnyEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XButtonEvent

Source§

fn from(xevent: XEvent) -> XButtonEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XCirculateEvent

Source§

fn from(xevent: XEvent) -> XCirculateEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XCirculateRequestEvent

Source§

fn from(xevent: XEvent) -> XCirculateRequestEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XClientMessageEvent

Source§

fn from(xevent: XEvent) -> XClientMessageEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XColormapEvent

Source§

fn from(xevent: XEvent) -> XColormapEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XConfigureEvent

Source§

fn from(xevent: XEvent) -> XConfigureEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XConfigureRequestEvent

Source§

fn from(xevent: XEvent) -> XConfigureRequestEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XCreateWindowEvent

Source§

fn from(xevent: XEvent) -> XCreateWindowEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XCrossingEvent

Source§

fn from(xevent: XEvent) -> XCrossingEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XDestroyWindowEvent

Source§

fn from(xevent: XEvent) -> XDestroyWindowEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XErrorEvent

Source§

fn from(xevent: XEvent) -> XErrorEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XExposeEvent

Source§

fn from(xevent: XEvent) -> XExposeEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XF86VidModeNotifyEvent

Source§

fn from(xevent: XEvent) -> XF86VidModeNotifyEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XFocusChangeEvent

Source§

fn from(xevent: XEvent) -> XFocusChangeEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XGenericEventCookie

Source§

fn from(xevent: XEvent) -> XGenericEventCookie

Converts to this type from the input type.
Source§

impl From<XEvent> for XGraphicsExposeEvent

Source§

fn from(xevent: XEvent) -> XGraphicsExposeEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XGravityEvent

Source§

fn from(xevent: XEvent) -> XGravityEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XKeyEvent

Source§

fn from(xevent: XEvent) -> XKeyEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XKeymapEvent

Source§

fn from(xevent: XEvent) -> XKeymapEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XMapEvent

Source§

fn from(xevent: XEvent) -> XMapEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XMapRequestEvent

Source§

fn from(xevent: XEvent) -> XMapRequestEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XMappingEvent

Source§

fn from(xevent: XEvent) -> XMappingEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XMotionEvent

Source§

fn from(xevent: XEvent) -> XMotionEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XNoExposeEvent

Source§

fn from(xevent: XEvent) -> XNoExposeEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XPropertyEvent

Source§

fn from(xevent: XEvent) -> XPropertyEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XRRCrtcChangeNotifyEvent

Source§

fn from(xevent: XEvent) -> XRRCrtcChangeNotifyEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XRRNotifyEvent

Source§

fn from(xevent: XEvent) -> XRRNotifyEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XRROutputChangeNotifyEvent

Source§

fn from(xevent: XEvent) -> XRROutputChangeNotifyEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XRROutputPropertyNotifyEvent

Source§

fn from(xevent: XEvent) -> XRROutputPropertyNotifyEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XRRProviderChangeNotifyEvent

Source§

fn from(xevent: XEvent) -> XRRProviderChangeNotifyEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XRRProviderPropertyNotifyEvent

Source§

fn from(xevent: XEvent) -> XRRProviderPropertyNotifyEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XRRResourceChangeNotifyEvent

Source§

fn from(xevent: XEvent) -> XRRResourceChangeNotifyEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XRRScreenChangeNotifyEvent

Source§

fn from(xevent: XEvent) -> XRRScreenChangeNotifyEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XReparentEvent

Source§

fn from(xevent: XEvent) -> XReparentEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XResizeRequestEvent

Source§

fn from(xevent: XEvent) -> XResizeRequestEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XScreenSaverNotifyEvent

Source§

fn from(xevent: XEvent) -> XScreenSaverNotifyEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XSelectionClearEvent

Source§

fn from(xevent: XEvent) -> XSelectionClearEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XSelectionEvent

Source§

fn from(xevent: XEvent) -> XSelectionEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XSelectionRequestEvent

Source§

fn from(xevent: XEvent) -> XSelectionRequestEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XUnmapEvent

Source§

fn from(xevent: XEvent) -> XUnmapEvent

Converts to this type from the input type.
Source§

impl From<XEvent> for XVisibilityEvent

Source§

fn from(xevent: XEvent) -> XVisibilityEvent

Converts to this type from the input type.
Source§

impl From<XExposeEvent> for XEvent

Source§

fn from(other: XExposeEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XF86VidModeNotifyEvent> for XEvent

Source§

fn from(other: XF86VidModeNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XFocusChangeEvent> for XEvent

Source§

fn from(other: XFocusChangeEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XGenericEventCookie> for XEvent

Source§

fn from(other: XGenericEventCookie) -> XEvent

Converts to this type from the input type.
Source§

impl From<XGraphicsExposeEvent> for XEvent

Source§

fn from(other: XGraphicsExposeEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XGravityEvent> for XEvent

Source§

fn from(other: XGravityEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XKeyEvent> for XEvent

Source§

fn from(other: XKeyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XKeymapEvent> for XEvent

Source§

fn from(other: XKeymapEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XMapEvent> for XEvent

Source§

fn from(other: XMapEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XMapRequestEvent> for XEvent

Source§

fn from(other: XMapRequestEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XMappingEvent> for XEvent

Source§

fn from(other: XMappingEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XMotionEvent> for XEvent

Source§

fn from(other: XMotionEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XNoExposeEvent> for XEvent

Source§

fn from(other: XNoExposeEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XPropertyEvent> for XEvent

Source§

fn from(other: XPropertyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XRRCrtcChangeNotifyEvent> for XEvent

Source§

fn from(other: XRRCrtcChangeNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XRRNotifyEvent> for XEvent

Source§

fn from(other: XRRNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XRROutputChangeNotifyEvent> for XEvent

Source§

fn from(other: XRROutputChangeNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XRROutputPropertyNotifyEvent> for XEvent

Source§

fn from(other: XRROutputPropertyNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XRRProviderChangeNotifyEvent> for XEvent

Source§

fn from(other: XRRProviderChangeNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XRRProviderPropertyNotifyEvent> for XEvent

Source§

fn from(other: XRRProviderPropertyNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XRRResourceChangeNotifyEvent> for XEvent

Source§

fn from(other: XRRResourceChangeNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XRRScreenChangeNotifyEvent> for XEvent

Source§

fn from(other: XRRScreenChangeNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XReparentEvent> for XEvent

Source§

fn from(other: XReparentEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XResizeRequestEvent> for XEvent

Source§

fn from(other: XResizeRequestEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XScreenSaverNotifyEvent> for XEvent

Source§

fn from(other: XScreenSaverNotifyEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XSelectionClearEvent> for XEvent

Source§

fn from(other: XSelectionClearEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XSelectionEvent> for XEvent

Source§

fn from(other: XSelectionEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XSelectionRequestEvent> for XEvent

Source§

fn from(other: XSelectionRequestEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XUnmapEvent> for XEvent

Source§

fn from(other: XUnmapEvent) -> XEvent

Converts to this type from the input type.
Source§

impl From<XVisibilityEvent> for XEvent

Source§

fn from(other: XVisibilityEvent) -> XEvent

Converts to this type from the input type.
Source§

impl Copy for XEvent

Auto Trait Implementations§

§

impl Freeze for XEvent

§

impl RefUnwindSafe for XEvent

§

impl !Send for XEvent

§

impl !Sync for XEvent

§

impl Unpin for XEvent

§

impl UnwindSafe for XEvent

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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>,

Source§

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.