pub struct EventBuilder { /* private fields */ }Implementations§
Source§impl EventBuilder
impl EventBuilder
pub fn new() -> Self
pub fn key(self, c: char) -> Self
pub fn key_code(self, code: KeyCode) -> Self
pub fn key_with(self, code: KeyCode, modifiers: KeyModifiers) -> Self
pub fn click(self, x: u32, y: u32) -> Self
pub fn scroll_up(self, x: u32, y: u32) -> Self
pub fn scroll_down(self, x: u32, y: u32) -> Self
pub fn resize(self, width: u32, height: u32) -> Self
pub fn build(self) -> Vec<Event>
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