Trait input::FromRaw
[−]
[src]
pub trait FromRaw<T> { unsafe fn from_raw(_: *mut T) -> Self; }
Trait for types that allow to be initialized from a raw pointer
Required Methods
unsafe fn from_raw(_: *mut T) -> Self
Create a new instance of this type from a raw pointer.
Warning
If you make use of Userdata
make sure you use the correct types
to allow receiving the set userdata. When dealing with raw pointers initialized by other
libraries this must be done extra carefully to select a correct representation.
If unsure using ()
is always a safe option..
Unsafety
If the pointer is pointing to a different struct, invalid memory or NULL
the returned
struct may panic on use or cause other undefined behavior.
Implementors
impl FromRaw<libinput> for Libinput
impl FromRaw<libinput_device_group> for DeviceGroup
impl FromRaw<libinput_device> for Device
impl FromRaw<libinput_event_device_notify> for DeviceEvent
impl FromRaw<libinput_event_device_notify> for DeviceAddedEvent
impl FromRaw<libinput_event_device_notify> for DeviceRemovedEvent
impl FromRaw<libinput_event_gesture> for GestureEvent
impl FromRaw<libinput_event_gesture> for GestureSwipeEvent
impl FromRaw<libinput_event_gesture> for GesturePinchEvent
impl FromRaw<libinput_event_gesture> for GestureSwipeBeginEvent
impl FromRaw<libinput_event_gesture> for GestureSwipeUpdateEvent
impl FromRaw<libinput_event_gesture> for GestureSwipeEndEvent
impl FromRaw<libinput_event_gesture> for GesturePinchBeginEvent
impl FromRaw<libinput_event_gesture> for GesturePinchUpdateEvent
impl FromRaw<libinput_event_gesture> for GesturePinchEndEvent
impl FromRaw<libinput_event_keyboard> for KeyboardEvent
impl FromRaw<libinput_event_keyboard> for KeyboardKeyEvent
impl FromRaw<libinput_event_pointer> for PointerEvent
impl FromRaw<libinput_event_pointer> for PointerMotionEvent
impl FromRaw<libinput_event_pointer> for PointerMotionAbsoluteEvent
impl FromRaw<libinput_event_pointer> for PointerButtonEvent
impl FromRaw<libinput_event_pointer> for PointerAxisEvent
impl FromRaw<libinput_event_switch> for SwitchEvent
impl FromRaw<libinput_event_switch> for SwitchToggleEvent
impl FromRaw<libinput_tablet_tool> for TabletTool
impl FromRaw<libinput_event_tablet_tool> for TabletToolEvent
impl FromRaw<libinput_event_tablet_tool> for TabletToolAxisEvent
impl FromRaw<libinput_event_tablet_tool> for TabletToolProximityEvent
impl FromRaw<libinput_event_tablet_tool> for TabletToolTipEvent
impl FromRaw<libinput_event_tablet_tool> for TabletToolButtonEvent
impl FromRaw<libinput_tablet_pad_mode_group> for TabletPadModeGroup
impl FromRaw<libinput_event_tablet_pad> for TabletPadEvent
impl FromRaw<libinput_event_tablet_pad> for TabletPadButtonEvent
impl FromRaw<libinput_event_tablet_pad> for TabletPadRingEvent
impl FromRaw<libinput_event_tablet_pad> for TabletPadStripEvent
impl FromRaw<libinput_event_touch> for TouchEvent
impl FromRaw<libinput_event_touch> for TouchDownEvent
impl FromRaw<libinput_event_touch> for TouchUpEvent
impl FromRaw<libinput_event_touch> for TouchMotionEvent
impl FromRaw<libinput_event_touch> for TouchCancelEvent
impl FromRaw<libinput_event_touch> for TouchFrameEvent
impl FromRaw<libinput_event> for Event
impl FromRaw<libinput_seat> for Seat