Trait gpu_display::GpuDisplayExt
source · pub trait GpuDisplayExt {
// Required methods
fn import_event_device(
&mut self,
event_device: EventDevice
) -> GpuDisplayResult<u32>;
fn handle_event_device(&mut self, event_device_id: u32);
}
Required Methods§
sourcefn import_event_device(
&mut self,
event_device: EventDevice
) -> GpuDisplayResult<u32>
fn import_event_device( &mut self, event_device: EventDevice ) -> GpuDisplayResult<u32>
Imports the given event_device
into the display, returning an event device id on success.
This device may be used to dispatch input events to the guest.
sourcefn handle_event_device(&mut self, event_device_id: u32)
fn handle_event_device(&mut self, event_device_id: u32)
Called when an event device is readable.