Struct hid_io_core::module::displayserver::x11::XConnection [−][src]
Implementations
impl XConnection
[src]
pub fn new() -> XConnection
[src]
pub fn find_keycode(&self, keysym: u64) -> (bool, Option<u32>)
[src]
pub fn lookup_sym(symbol: char) -> u64
[src]
pub fn bind_key(&self, keycode: u32, keysym: u64)
[src]
pub fn unbind_key(&self, keycode: u32)
[src]
pub fn press_key(&mut self, keycode: u32, press: bool)
[src]
Press/Release a specific keycode NOTE: This call does not update the pending delays and must be updated prior (unlike press_release_key())
pub fn press_release_key(&mut self, keycode: u32)
[src]
Press then release a specific keycode Faster than individual calls to press_key as you don’t need a delay between press and release of the same keycode. This function will automatically add delays as necessary using previously calculated delays.
pub fn map_sym(&mut self, c: char) -> Option<u32>
[src]
pub fn unmap_sym(&mut self, c: char)
[src]
pub fn get_sym(&mut self, c: char) -> Option<u32>
[src]
Trait Implementations
impl Default for XConnection
[src]
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>
fn get_held(&mut self) -> Result<Vec<char>, DisplayOutputError>
[src]
fn set_held(&mut self, string: &str) -> Result<(), DisplayOutputError>
[src]
impl Drop for XConnection
[src]
Auto Trait Implementations
impl RefUnwindSafe for XConnection
impl !Send for XConnection
impl !Sync for XConnection
impl Unpin for XConnection
impl UnwindSafe for XConnection
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,