Union sdl2_sys::_XEvent

source ·
#[repr(C)]
pub union _XEvent {
Show 35 fields pub type_: c_int, pub xany: XAnyEvent, pub xkey: XKeyEvent, pub xbutton: XButtonEvent, pub xmotion: XMotionEvent, pub xcrossing: XCrossingEvent, pub xfocus: XFocusChangeEvent, pub xexpose: XExposeEvent, pub xgraphicsexpose: XGraphicsExposeEvent, pub xnoexpose: XNoExposeEvent, pub xvisibility: XVisibilityEvent, pub xcreatewindow: XCreateWindowEvent, pub xdestroywindow: XDestroyWindowEvent, pub xunmap: XUnmapEvent, pub xmap: XMapEvent, pub xmaprequest: XMapRequestEvent, pub xreparent: XReparentEvent, pub xconfigure: XConfigureEvent, pub xgravity: XGravityEvent, pub xresizerequest: XResizeRequestEvent, pub xconfigurerequest: XConfigureRequestEvent, pub xcirculate: XCirculateEvent, pub xcirculaterequest: XCirculateRequestEvent, pub xproperty: XPropertyEvent, pub xselectionclear: XSelectionClearEvent, pub xselectionrequest: XSelectionRequestEvent, pub xselection: XSelectionEvent, pub xcolormap: XColormapEvent, pub xclient: XClientMessageEvent, pub xmapping: XMappingEvent, pub xerror: XErrorEvent, pub xkeymap: XKeymapEvent, pub xgeneric: XGenericEvent, pub xcookie: XGenericEventCookie, pub pad: [c_long; 24], /* private fields */
}

Fields

type_: c_intxany: XAnyEventxkey: XKeyEventxbutton: XButtonEventxmotion: XMotionEventxcrossing: XCrossingEventxfocus: XFocusChangeEventxexpose: XExposeEventxgraphicsexpose: XGraphicsExposeEventxnoexpose: XNoExposeEventxvisibility: XVisibilityEventxcreatewindow: XCreateWindowEventxdestroywindow: XDestroyWindowEventxunmap: XUnmapEventxmap: XMapEventxmaprequest: XMapRequestEventxreparent: XReparentEventxconfigure: XConfigureEventxgravity: XGravityEventxresizerequest: XResizeRequestEventxconfigurerequest: XConfigureRequestEventxcirculate: XCirculateEventxcirculaterequest: XCirculateRequestEventxproperty: XPropertyEventxselectionclear: XSelectionClearEventxselectionrequest: XSelectionRequestEventxselection: XSelectionEventxcolormap: XColormapEventxclient: XClientMessageEventxmapping: XMappingEventxerror: XErrorEventxkeymap: XKeymapEventxgeneric: XGenericEventxcookie: XGenericEventCookiepad: [c_long; 24]

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.