pub trait Touch<'a> {
// Required methods
fn enable(&self) -> Result<(), ErrorCode>;
fn disable(&self) -> Result<(), ErrorCode>;
fn set_client(&self, touch_client: &'a dyn TouchClient);
}
Expand description
Single touch panels should implement this
Required Methods§
sourcefn enable(&self) -> Result<(), ErrorCode>
fn enable(&self) -> Result<(), ErrorCode>
Enable the touch panel
returns Ok(()) even if device is already enabled
sourcefn disable(&self) -> Result<(), ErrorCode>
fn disable(&self) -> Result<(), ErrorCode>
Disable the touch panel
returns Ok(()) even if device is already disabled
sourcefn set_client(&self, touch_client: &'a dyn TouchClient)
fn set_client(&self, touch_client: &'a dyn TouchClient)
Set the touch client