[−][src]Struct vts_rs::VirtualTouchScreen
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
impl RefUnwindSafe for VirtualTouchScreen
impl Send for VirtualTouchScreen
impl Sync for VirtualTouchScreen
impl Unpin for VirtualTouchScreen
impl UnwindSafe for VirtualTouchScreen
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,
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, 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.
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>,