pub struct Window { /* private fields */ }Expand description
Handle to a window on the system.
Implementations§
source§impl Window
impl Window
sourcepub fn copy_data(&self, ty: usize, bytes: &[u8]) -> Result<()>
pub fn copy_data(&self, ty: usize, bytes: &[u8]) -> Result<()>
Copy bytes to the given process.
Data is received as an Event::CopyData event.
Examples
use winctx::window::FindWindow;
let Some(window) = FindWindow::new().class("se.tedro.Example").find()? else {
println!("Could not find window");
return Ok(());
};
window.copy_data(42, b"foobar")?;Trait Implementations§
Auto Trait Implementations§
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