pub struct VirtualDevice {
pub sender: ChannelSender,
/* private fields */
}
Fields§
§sender: ChannelSender
Implementations§
Source§impl VirtualDevice
impl VirtualDevice
pub fn default() -> Result<Self>
pub fn send_to_channel( kind: u16, code: u16, value: i32, sender: &ChannelSender, ) -> EmptyResult
pub fn send_press(button: Button, sender: &ChannelSender) -> EmptyResult
pub fn send_release(button: Button, sender: &ChannelSender) -> EmptyResult
pub fn send_click(button: Button, sender: &ChannelSender) -> EmptyResult
pub fn send_mouse_move_x(x: Coord, sender: &ChannelSender) -> EmptyResult
pub fn send_mouse_move_y(y: Coord, sender: &ChannelSender) -> EmptyResult
pub fn send_mouse_move( x: Coord, y: Coord, sender: &ChannelSender, ) -> EmptyResult
pub fn send_scroll_x(value: Coord, sender: &ChannelSender) -> EmptyResult
pub fn send_scroll_y(value: Coord, sender: &ChannelSender) -> EmptyResult
pub fn flush_channel_every_interval(self) -> JoinHandle<()>
pub fn write_batch(&mut self, batch: &[EventParams]) -> EmptyResult
pub fn synchronize(&mut self) -> EmptyResult
pub fn move_mouse_raw_x(&mut self, x: Coord) -> EmptyResult
pub fn move_mouse_raw_y(&mut self, y: Coord) -> EmptyResult
pub fn move_mouse_raw(&mut self, x: Coord, y: Coord) -> EmptyResult
pub fn buffered_move_mouse_x(&mut self, x: Coord) -> Vec<EventParams> ⓘ
pub fn buffered_move_mouse_y(&mut self, y: Coord) -> Vec<EventParams> ⓘ
pub fn buffered_move_mouse(&mut self, x: Coord, y: Coord) -> Vec<EventParams> ⓘ
pub fn gradual_move_mouse_raw(&mut self, x: Coord, y: Coord) -> Result<()>
pub fn smooth_move_mouse(&mut self, x: Coord, y: Coord) -> Result<()>
pub fn buffered_gradual_move_mouse( &mut self, x: Coord, y: Coord, ) -> Vec<EventParams> ⓘ
pub fn move_mouse_x(&mut self, x: Coord) -> EmptyResult
pub fn move_mouse_y(&mut self, y: Coord) -> EmptyResult
pub fn move_mouse(&mut self, x: Coord, y: Coord) -> EmptyResult
pub fn scroll_raw_x(&mut self, value: Coord) -> EmptyResult
pub fn scroll_raw_y(&mut self, value: Coord) -> EmptyResult
pub fn buffered_scroll_x(&mut self, value: Coord) -> Vec<EventParams> ⓘ
pub fn buffered_scroll_y(&mut self, value: Coord) -> Vec<EventParams> ⓘ
pub fn scroll_x(&mut self, value: Coord) -> EmptyResult
pub fn gradual_scroll_raw(&mut self, x: Coord, y: Coord) -> Result<()>
pub fn smooth_scroll(&mut self, x: Coord, y: Coord) -> Result<()>
pub fn buffered_gradual_scroll( &mut self, x: Coord, y: Coord, ) -> Vec<EventParams> ⓘ
pub fn scroll_y(&mut self, value: Coord) -> EmptyResult
pub fn buffered_press(&mut self, button: Button) -> Vec<EventParams> ⓘ
pub fn buffered_release(&mut self, button: Button) -> Vec<EventParams> ⓘ
pub fn press(&mut self, button: Button) -> EmptyResult
pub fn release(&mut self, button: Button) -> EmptyResult
pub fn click(&mut self, button: Button) -> EmptyResult
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VirtualDevice
impl RefUnwindSafe for VirtualDevice
impl Send for VirtualDevice
impl Sync for VirtualDevice
impl Unpin for VirtualDevice
impl UnwindSafe for VirtualDevice
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