Trait hid_io_core::module::displayserver::DisplayOutput [−][src]
Functions that can be called in a cross platform manner
Required methods
fn get_layout(&self) -> Result<String, DisplayOutputError>
[src]
fn set_layout(&self, layout: &str) -> Result<(), DisplayOutputError>
[src]
fn type_string(&mut self, string: &str) -> Result<(), DisplayOutputError>
[src]
fn press_symbol(
&mut self,
c: char,
state: bool
) -> Result<(), DisplayOutputError>
[src]
&mut self,
c: char,
state: bool
) -> Result<(), DisplayOutputError>
fn get_held(&mut self) -> Result<Vec<char>, DisplayOutputError>
[src]
fn set_held(&mut self, string: &str) -> Result<(), DisplayOutputError>
[src]
Implementors
impl DisplayOutput for StubOutput
[src]
fn get_layout(&self) -> Result<String, DisplayOutputError>
[src]
fn set_layout(&self, _layout: &str) -> Result<(), DisplayOutputError>
[src]
fn type_string(&mut self, _string: &str) -> Result<(), DisplayOutputError>
[src]
fn press_symbol(
&mut self,
_c: char,
_state: bool
) -> Result<(), DisplayOutputError>
[src]
&mut self,
_c: char,
_state: bool
) -> Result<(), DisplayOutputError>
fn get_held(&mut self) -> Result<Vec<char>, DisplayOutputError>
[src]
fn set_held(&mut self, _string: &str) -> Result<(), DisplayOutputError>
[src]
impl DisplayOutput for WaylandConnection
[src]
fn get_layout(&self) -> Result<String, DisplayOutputError>
[src]
fn set_layout(&self, _layout: &str) -> Result<(), DisplayOutputError>
[src]
fn type_string(&mut self, string: &str) -> Result<(), DisplayOutputError>
[src]
Type the given UTF-8 string using the virtual keyboard Should behave nicely even if keys were previously held (those keys will continue to be held after sequence is complete, though there may be some issues with this case due to the layout switching)
fn press_symbol(
&mut self,
c: char,
press: bool
) -> Result<(), DisplayOutputError>
[src]
&mut self,
c: char,
press: bool
) -> Result<(), DisplayOutputError>
Press/Release a given UTF-8 symbol NOTE: This function does not synchronize the event queue, should be done immediately after calling (unless you’re trying to optimize scheduling).
fn get_held(&mut self) -> Result<Vec<char>, DisplayOutputError>
[src]
Retrieve currently held UTF-8 symbols
fn set_held(&mut self, string: &str) -> Result<(), DisplayOutputError>
[src]
Set keys to hold If any UTF-8 chars are not included from the previous invocation they will be released
impl DisplayOutput for XConnection
[src]
fn get_layout(&self) -> Result<String, DisplayOutputError>
[src]
fn set_layout(&self, layout: &str) -> Result<(), DisplayOutputError>
[src]
fn type_string(&mut self, string: &str) -> Result<(), DisplayOutputError>
[src]
fn press_symbol(
&mut self,
c: char,
press: bool
) -> Result<(), DisplayOutputError>
[src]
&mut self,
c: char,
press: bool
) -> Result<(), DisplayOutputError>