Trait hid_io_core::module::displayserver::DisplayOutput[][src]

pub trait DisplayOutput {
    fn get_layout(&self) -> Result<String, DisplayOutputError>;
fn set_layout(&self, layout: &str) -> Result<(), DisplayOutputError>;
fn type_string(&mut self, string: &str) -> Result<(), DisplayOutputError>;
fn press_symbol(
        &mut self,
        c: char,
        state: bool
    ) -> Result<(), DisplayOutputError>;
fn get_held(&mut self) -> Result<Vec<char>, DisplayOutputError>;
fn set_held(&mut self, string: &str) -> Result<(), DisplayOutputError>; }

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]

fn get_held(&mut self) -> Result<Vec<char>, DisplayOutputError>[src]

fn set_held(&mut self, string: &str) -> Result<(), DisplayOutputError>[src]

Loading content...

Implementors

impl DisplayOutput for StubOutput[src]

impl DisplayOutput for WaylandConnection[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]

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]

Loading content...