pub struct VirtualTouchScreen {
pub filename: String,
/* private fields */
}
Expand description
Base structure, that stores information about currently stored queue and the module entrypoint.
Fields§
§filename: String
Implementations§
Source§impl VirtualTouchScreen
impl VirtualTouchScreen
Sourcepub fn new() -> VirtualTouchScreen
pub fn new() -> VirtualTouchScreen
Create new instance with default location at /dev/virtual_touchscreen
Sourcepub fn new_with_path(path: String) -> VirtualTouchScreen
pub fn new_with_path(path: String) -> VirtualTouchScreen
Create new instance with a custom location of the kernel module entry
Sourcepub fn clear_queue(&mut self)
pub fn clear_queue(&mut self)
Remove all actions from the queue
Sourcepub fn submit_queue(&mut self)
pub fn submit_queue(&mut self)
Execute the queue
Sourcepub fn set_pointer(&mut self, pointer: u32)
pub fn set_pointer(&mut self, pointer: u32)
Set active pointer
Sourcepub fn set_position(&mut self, x: u32, y: u32)
pub fn set_position(&mut self, x: u32, y: u32)
Set pointer position
Auto Trait Implementations§
impl Freeze for VirtualTouchScreen
impl RefUnwindSafe for VirtualTouchScreen
impl Send for VirtualTouchScreen
impl Sync for VirtualTouchScreen
impl Unpin for VirtualTouchScreen
impl UnwindSafe for VirtualTouchScreen
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more