Trait cognitive_qualia::traits::StatePublishing
[−]
[src]
pub trait StatePublishing { fn emit(&mut self, id: SignalId, package: Perceptron); fn suspend(&mut self); fn wakeup(&mut self); fn input_devices_changed(&mut self); fn output_devices_changed(&mut self); fn notify(&mut self); fn publish_output(&mut self, drm_budle: DrmBundle); fn emit_vblank(&mut self, display_id: i32); fn emit_page_flip(&mut self, display_id: i32); }
Generic communication with the rest of application.
Required Methods
fn emit(&mut self, id: SignalId, package: Perceptron)
Emits given signal.
TODO: Remove emit
method.
fn suspend(&mut self)
Notifies about suspending drawing on screen. Probably virtual terminal was switched and GPU is not available to us.
fn wakeup(&mut self)
Sends request to revoke application from suspension.
fn input_devices_changed(&mut self)
Sends notification about changing of state of input devices.
fn output_devices_changed(&mut self)
Sends notification about changing of state of output devices.
fn notify(&mut self)
Notifies application about event that requires screen to be refreshed.
TODO: Rename notify
to refresh
.
fn publish_output(&mut self, drm_budle: DrmBundle)
Publishes newly found output.
fn emit_vblank(&mut self, display_id: i32)
Notifies about V-blank.
fn emit_page_flip(&mut self, display_id: i32)
Notifies about page flip.