pub struct EventBuilder { /* private fields */ }Expand description
Implementations§
Source§impl EventBuilder
impl EventBuilder
Sourcepub fn key_code(self, code: KeyCode) -> Self
pub fn key_code(self, code: KeyCode) -> Self
Append a special key-press event (arrows, Enter, Esc, etc.).
Sourcepub fn key_with(self, code: KeyCode, modifiers: KeyModifiers) -> Self
pub fn key_with(self, code: KeyCode, modifiers: KeyModifiers) -> Self
Append a key-press event with modifier keys (Ctrl, Shift, Alt).
Sourcepub fn click(self, x: u32, y: u32) -> Self
pub fn click(self, x: u32, y: u32) -> Self
Append a left mouse click at terminal position (x, y).
Sourcepub fn scroll_down(self, x: u32, y: u32) -> Self
pub fn scroll_down(self, x: u32, y: u32) -> Self
Append a scroll-down event at (x, y).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventBuilder
impl RefUnwindSafe for EventBuilder
impl Send for EventBuilder
impl Sync for EventBuilder
impl Unpin for EventBuilder
impl UnsafeUnpin for EventBuilder
impl UnwindSafe for EventBuilder
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