MCPcopy Create free account

hub / github.com/enigo-rs/enigo / functions

Functions223 in github.com/enigo-rs/enigo

↓ 25 callersFunctionws
A combinator that takes a parser `inner` and produces a parser that also consumes both leading and trailing whitespace, returning the output of `inner
src/linux/keymap2/parse_keymap.rs:507
↓ 21 callersMethodkey
(&mut self, keycode: Keycode, direction: Direction)
src/linux/keymap.rs:262
↓ 19 callersMethodspecial_keys
(&mut self, code: isize, direction: Direction)
src/macos/macos_impl.rs:587
↓ 16 callersMethodmap
Add the Keysym to the keymap This does not apply the changes
src/linux/keymap.rs:165
↓ 15 callersMethodkey
(&mut self, key: Key, direction: Direction)
tests/common/enigo_test.rs:101
↓ 10 callersMethodflush
Flush the Wayland queue
src/linux/wayland.rs:266
↓ 10 callersFunctionget_delay
Add a longer delay if it is not ran in the CI so the user can observe the mouse moves but don't waste time in the CI
src/tests/mod.rs:17
↓ 10 callersMethodupdate_wait_time
Save the current Instant and calculate the remaining waiting time We assume we need to wait for 20 ms for each event to make sure the OS has time to h
src/macos/macos_impl.rs:920
↓ 8 callersMethodupdate
(&mut self, libei_name: &str)
src/linux/libei.rs:215
↓ 7 callersMethodread_message
(&mut self)
tests/common/enigo_test.rs:56
↓ 6 callersFunctionkeybd_event
( flags: KEYBD_EVENT_FLAGS, vk: VIRTUAL_KEY, scan: ScanCode, dw_extra_info: usize, )
src/win/win_impl.rs:86
↓ 6 callersMethodmove_mouse
(&mut self, x: i32, y: i32, coordinate: Coordinate)
tests/common/enigo_test.rs:147
↓ 6 callersFunctionsend_input
(input: &[INPUT])
src/win/win_impl.rs:38
↓ 6 callersMethodtext
(&mut self, text: &str)
src/lib.rs:235
↓ 5 callersMethodget_time
Get the duration since the Keymap was created
src/linux/wayland.rs:159
↓ 5 callersFunctionmouse_event
( flags: MOUSE_EVENT_FLAGS, data: i32, dx: i32, dy: i32, dw_extra_info: usize, )
src/win/win_impl.rs:63
↓ 5 callersMethodscroll
(&mut self, _: i32, _: crate::Axis)
src/platform.rs:21
↓ 4 callersMethodbutton
(&mut self, _: crate::Button, _: crate::Direction)
src/platform.rs:13
↓ 4 callersFunctionis_alive
(proxy: &P)
src/linux/wayland.rs:1010
↓ 4 callersMethodmove_mouse
(&mut self, x: i32, y: i32, coordinate: Coordinate)
src/linux/mod.rs:195
↓ 4 callersMethodraw
(&mut self, keycode: u16, direction: Direction)
src/linux/x11rb.rs:269
↓ 4 callersMethodscroll
Sends a scroll event to the X11 server via `XTest` extension
src/win/win_impl.rs:218
↓ 4 callersMethodscroll
(&mut self, length: i32, axis: Axis)
src/macos/macos_impl.rs:235
↓ 4 callersMethodscroll
(&mut self, length: i32, axis: Axis)
src/linux/wayland.rs:967
↓ 4 callersMethodscroll
(&mut self, length: i32, axis: Axis)
src/linux/libei.rs:707
↓ 4 callersFunctiontest_mouse_move
( enigo: &mut Enigo, test_cases: Vec<Vec<((i32, i32), (i32, i32))>>, coordinate: crate::Coordinate
src/tests/mouse.rs:12
↓ 4 callersMethodtext
Enter the whole text string instead of entering individual keys This is much faster if you type longer text at the cost of keyboard shortcuts not gett
src/win/win_impl.rs:276
↓ 3 callersMethoddevice_id
Get the device id of the first device that is found which has the same usage as the input parameter
src/linux/x11rb.rs:195
↓ 3 callersMethodmain_display
(&self)
src/linux/mod.rs:259
↓ 3 callersMethodmove_mouse
(&mut self, _: i32, _: i32, _: crate::Coordinate)
src/platform.rs:17
↓ 3 callersMethodqueue_key
( &mut self, input_queue: &mut Vec<INPUT>, key: Key, direction: Direction,
src/win/win_impl.rs:428
↓ 3 callersMethodraw
(&mut self, keycode: u16, direction: Direction)
src/linux/mod.rs:367
↓ 3 callersMethodupdate_key
Update the state and return the new bitflags for the modifiers and the effective layout if they changed. If they remained the same, None is returned
src/linux/keymap2/mod.rs:160
↓ 2 callersMethodadd_event_flag
Adds or removes `KeyFlags` as needed by the keycode This function can never get called with `Direction::Click`!
src/macos/macos_impl.rs:664
↓ 2 callersMethodbind_key
Map the keysym to the given keycode Only use keycodes that are not used, otherwise the existing mapping is overwritten If the keycode is mapped to the
src/linux/keymap.rs:288
↓ 2 callersMethodbutton
(&mut self, button: Button, direction: Direction)
src/linux/mod.rs:163
↓ 2 callersMethodchunks
Fn to create an iterator over sub slices of a str that have the specified length
src/macos/macos_impl.rs:267
↓ 2 callersFunctionis_ci
Check if the code is running in the CI
src/tests/mod.rs:11
↓ 2 callersMethodkey
(&mut self, key: Key, direction: Direction)
src/macos/macos_impl.rs:331
↓ 2 callersMethodkey
(&mut self, key: Key, direction: Direction)
src/linux/libei.rs:501
↓ 2 callersMethodkey_to_keycode
(&mut self, c: &C, key: Key)
src/linux/keymap.rs:131
↓ 2 callersFunctionkeycode_to_string
(keycode: u16, modifier: u32)
src/macos/macos_impl.rs:1068
↓ 2 callersMethodlocation
(&self)
src/macos/macos_impl.rs:254
↓ 2 callersMethodlocation
Edge cases don't work (mouse is at the left most border and can't move one to the left)
tests/common/enigo_test.rs:218
↓ 2 callersMethodmap_key
(&mut self, key: Key)
src/linux/keymap2/mod.rs:256
↓ 2 callersMethodnth_button_press
On macOS, we have to determine ourselves if it was a double click of a mouse button. The Enigo struct stores the information needed to do so. This fun
src/macos/macos_impl.rs:571
↓ 2 callersFunctionparse_section
(input: &'a str, struct_tag: &str)
src/linux/keymap2/parse_keymap.rs:500
↓ 2 callersFunctionpress_a
(from: &'static str)
examples/sync.rs:19
↓ 2 callersMethodqueue_char
(&mut self, input_queue: &mut Vec<INPUT>, character: char, buffer: &mut [u16; 2])
src/win/win_impl.rs:475
↓ 2 callersMethodraw
(&mut self, _: u16, _: crate::Direction)
src/platform.rs:43
↓ 2 callersMethodraw
(&mut self, keycode: u16, direction: Direction)
src/macos/macos_impl.rs:442
↓ 2 callersMethodraw
(&mut self, keycode: u16, direction: Direction)
src/linux/libei.rs:542
↓ 2 callersMethodscroll_unit
( &mut self, length: i32, scroll_event_unit: CGScrollEventUnit, axis: Axis,
src/macos/macos_impl.rs:883
↓ 2 callersMethodsend_key_event
Press/Release a keycode # Errors TODO
src/linux/wayland.rs:169
↓ 2 callersMethodsend_message
(&mut self, msg: &str)
tests/common/enigo_test.rs:46
↓ 2 callersMethodsend_modifier_event
Sends a modifier event with the updated bitflag of the modifiers to the compositor
src/linux/wayland.rs:198
↓ 2 callersMethodupdate_keymap
Apply the current keymap # Errors TODO
src/linux/wayland.rs:237
↓ 1 callersMethodbind_key
(&self, keycode: Keycode, keysym: Keysym)
src/linux/x11rb.rs:237
↓ 1 callersMethodbutton
(&mut self, button: Button, direction: Direction)
src/linux/xdo.rs:241
↓ 1 callersMethodbutton
(&mut self, button: Button, direction: Direction)
src/linux/x11rb.rs:337
↓ 1 callersMethodcheck_available_protocols
(&self)
src/linux/wayland.rs:139
↓ 1 callersMethodcopy_maps_for_keycodes
( &mut self, other_keymap: &Self, keycodes_to_copy: &HashSet<Keycode>, )
src/linux/keymap2/parse_keymap.rs:106
↓ 1 callersMethodexecute
Execute the action associated with the token. A [`Token::Text`] will enter text, a [`Token::Scroll`] will scroll and so forth. Have a look at the docu
src/agent.rs:83
↓ 1 callersMethodfast_text
(&mut self, _: &str)
src/platform.rs:35
↓ 1 callersMethodformat_file_size
(&self)
src/linux/keymap2/mod.rs:220
↓ 1 callersFunctionget_layoutdependent_keycode
(string: &str)
src/macos/macos_impl.rs:1034
↓ 1 callersFunctionhas_permission
Check if the currently running application has the permissions to simulate input Returns true if the application has the permission and is allowed to
src/macos/macos_impl.rs:1143
↓ 1 callersMethodheld
Returns a list of all currently pressed keys
src/win/win_impl.rs:508
↓ 1 callersMethodheld
Returns a list of all currently pressed keys
src/macos/macos_impl.rs:556
↓ 1 callersMethodheld
Returns a list of all currently pressed keys
src/linux/mod.rs:157
↓ 1 callersMethodinterface
(&self)
src/linux/libei.rs:66
↓ 1 callersMethodkey
Sends a key event to the X11 server via `XTest` extension
src/win/win_impl.rs:301
↓ 1 callersMethodkey
(&mut self, key: Key, direction: Direction)
src/linux/wayland.rs:795
↓ 1 callersMethodkey
(&mut self, key: Key, direction: Direction)
src/linux/mod.rs:323
↓ 1 callersMethodkey
(&mut self, key: Key, direction: Direction)
src/linux/x11rb.rs:255
↓ 1 callersFunctionkey_to_keycode
(keymap: &xkb::Keymap, key: Key)
src/linux/libei.rs:775
↓ 1 callersMethodkeysym_to_keycode
(&self, keysym: Keysym)
src/linux/keymap.rs:98
↓ 1 callersMethodlocation
(&self)
src/platform.rs:29
↓ 1 callersMethodlocation
(&self)
src/win/win_impl.rs:255
↓ 1 callersMethodlocation
(&self)
src/linux/mod.rs:279
↓ 1 callersFunctionmain
()
examples/key.rs:8
↓ 1 callersMethodmain_display
(&self)
src/platform.rs:25
↓ 1 callersMethodmain_display
(&self)
src/win/win_impl.rs:240
↓ 1 callersMethodmain_display
(&self)
src/linux/wayland.rs:988
↓ 1 callersMethodmain_display
(&self)
tests/common/enigo_test.rs:201
↓ 1 callersMethodmake_room
Check if there are still unused keycodes available. If there aren't, make some room by freeing the already mapped keycodes. Returns true, if keys were
src/linux/keymap.rs:240
↓ 1 callersFunctionmouse_position
()
tests/common/enigo_test.rs:240
↓ 1 callersFunctionmousebutton
(button: Button)
src/linux/xdo.rs:73
↓ 1 callersMethodparse
(input: &str)
src/linux/keymap2/parse_keymap.rs:200
↓ 1 callersMethodpending_delays
(&self)
src/linux/keymap.rs:158
↓ 1 callersMethodraw
(&mut self, scan: u16, direction: Direction)
src/win/win_impl.rs:327
↓ 1 callersMethodraw
(&mut self, keycode: u16, direction: Direction)
src/linux/wayland.rs:826
↓ 1 callersFunctionrdev_main_display
()
tests/common/enigo_test.rs:234
↓ 1 callersFunctionset_dpi_awareness
Sets the current process to a specified dots per inch (dpi) awareness context [see official documentation](https://learn.microsoft.com/en-us/windows/w
src/win/win_impl.rs:560
↓ 1 callersMethodsmooth_scroll
(&mut self, length: i32, axis: Axis)
src/lib.rs:363
↓ 1 callersMethodunmap
Remove the Keysym from the keymap This does not apply the changes
src/linux/keymap.rs:188
↓ 1 callersMethodunmap_everything
(&mut self)
src/linux/keymap2/mod.rs:266
↓ 1 callersMethodupdate
(&mut self, format: KeymapFormat, fd: OwnedFd, size: u32)
src/linux/keymap2/mod.rs:114
↓ 1 callersMethodupdate_delays
(&mut self, keycode: Keycode)
src/linux/keymap.rs:209
↓ 1 callersMethodupdate_modifiers
( &mut self, depressed_mods: ModMask, latched_mods: ModMask, locked_mods: ModM
src/linux/keymap2/mod.rs:201
next →1–100 of 223, ranked by callers