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 Libinputimpl FromRaw<libinput_device_group> for DeviceGroupimpl FromRaw<libinput_device> for Deviceimpl FromRaw<libinput_event_device_notify> for DeviceEventimpl FromRaw<libinput_event_device_notify> for DeviceAddedEventimpl FromRaw<libinput_event_device_notify> for DeviceRemovedEventimpl FromRaw<libinput_event_gesture> for GestureEventimpl FromRaw<libinput_event_gesture> for GestureSwipeEventimpl FromRaw<libinput_event_gesture> for GesturePinchEventimpl FromRaw<libinput_event_gesture> for GestureSwipeBeginEventimpl FromRaw<libinput_event_gesture> for GestureSwipeUpdateEventimpl FromRaw<libinput_event_gesture> for GestureSwipeEndEventimpl FromRaw<libinput_event_gesture> for GesturePinchBeginEventimpl FromRaw<libinput_event_gesture> for GesturePinchUpdateEventimpl FromRaw<libinput_event_gesture> for GesturePinchEndEventimpl FromRaw<libinput_event_keyboard> for KeyboardEventimpl FromRaw<libinput_event_keyboard> for KeyboardKeyEventimpl FromRaw<libinput_event_pointer> for PointerEventimpl FromRaw<libinput_event_pointer> for PointerMotionEventimpl FromRaw<libinput_event_pointer> for PointerMotionAbsoluteEventimpl FromRaw<libinput_event_pointer> for PointerButtonEventimpl FromRaw<libinput_event_pointer> for PointerAxisEventimpl FromRaw<libinput_event_switch> for SwitchEventimpl FromRaw<libinput_event_switch> for SwitchToggleEventimpl FromRaw<libinput_tablet_tool> for TabletToolimpl FromRaw<libinput_event_tablet_tool> for TabletToolEventimpl FromRaw<libinput_event_tablet_tool> for TabletToolAxisEventimpl FromRaw<libinput_event_tablet_tool> for TabletToolProximityEventimpl FromRaw<libinput_event_tablet_tool> for TabletToolTipEventimpl FromRaw<libinput_event_tablet_tool> for TabletToolButtonEventimpl FromRaw<libinput_tablet_pad_mode_group> for TabletPadModeGroupimpl FromRaw<libinput_event_tablet_pad> for TabletPadEventimpl FromRaw<libinput_event_tablet_pad> for TabletPadButtonEventimpl FromRaw<libinput_event_tablet_pad> for TabletPadRingEventimpl FromRaw<libinput_event_tablet_pad> for TabletPadStripEventimpl FromRaw<libinput_event_touch> for TouchEventimpl FromRaw<libinput_event_touch> for TouchDownEventimpl FromRaw<libinput_event_touch> for TouchUpEventimpl FromRaw<libinput_event_touch> for TouchMotionEventimpl FromRaw<libinput_event_touch> for TouchCancelEventimpl FromRaw<libinput_event_touch> for TouchFrameEventimpl FromRaw<libinput_event> for Eventimpl FromRaw<libinput_seat> for Seat