pub union GdkEvent {
Show 25 fields pub type_: GdkEventType, pub any: GdkEventAny, pub expose: GdkEventExpose, pub visibility: GdkEventVisibility, pub motion: GdkEventMotion, pub button: GdkEventButton, pub touch: GdkEventTouch, pub scroll: GdkEventScroll, pub key: GdkEventKey, pub crossing: GdkEventCrossing, pub focus_change: GdkEventFocus, pub configure: GdkEventConfigure, pub property: GdkEventProperty, pub selection: GdkEventSelection, pub owner_change: GdkEventOwnerChange, pub proximity: GdkEventProximity, pub dnd: GdkEventDND, pub window_state: GdkEventWindowState, pub setting: GdkEventSetting, pub grab_broken: GdkEventGrabBroken, pub touchpad_swipe: GdkEventTouchpadSwipe, pub touchpad_pinch: GdkEventTouchpadPinch, pub pad_button: GdkEventPadButton, pub pad_axis: GdkEventPadAxis, pub pad_group_mode: GdkEventPadGroupMode,


type_: GdkEventTypeany: GdkEventAnyexpose: GdkEventExposevisibility: GdkEventVisibilitymotion: GdkEventMotionbutton: GdkEventButtontouch: GdkEventTouchscroll: GdkEventScrollkey: GdkEventKeycrossing: GdkEventCrossingfocus_change: GdkEventFocusconfigure: GdkEventConfigureproperty: GdkEventPropertyselection: GdkEventSelectionowner_change: GdkEventOwnerChangeproximity: GdkEventProximitydnd: GdkEventDNDwindow_state: GdkEventWindowStatesetting: GdkEventSettinggrab_broken: GdkEventGrabBrokentouchpad_swipe: GdkEventTouchpadSwipetouchpad_pinch: GdkEventTouchpadPinchpad_button: GdkEventPadButtonpad_axis: GdkEventPadAxispad_group_mode: GdkEventPadGroupMode

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.