[][src]Struct vts_rs::VirtualTouchScreen

pub struct VirtualTouchScreen {
    pub filename: String,
    // some fields omitted
}

Base structure, that stores information about currently stored queue and the module entrypoint.

Fields

filename: String

Implementations

impl VirtualTouchScreen[src]

pub fn new() -> VirtualTouchScreen[src]

Create new instance with default location at /dev/virtual_touchscreen

pub fn new_with_path(path: String) -> VirtualTouchScreen[src]

Create new instance with a custom location of the kernel module entry

pub fn clear_queue(&mut self)[src]

Remove all actions from the queue

pub fn pop_queue(&mut self)[src]

Remove last action from the queue

pub fn submit_queue(&mut self)[src]

Execute the queue

pub fn set_pointer(&mut self, pointer: u32)[src]

Set active pointer

pub fn set_position(&mut self, x: u32, y: u32)[src]

Set pointer position

pub fn set_x(&mut self, x: u32)[src]

Set X coordinate

pub fn set_y(&mut self, y: u32)[src]

Set Y coordinate

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.