-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] windows support #2
Comments
After seeing your announcement, I've started looking into this. So far I have it listing windows, and I've started working on the capture steps. Current issues are:
|
Nice, just a heads up, the API has evolved and must now implement this trait: use crate::{ImageOnHeap, Result, WindowId, WindowList};
pub trait PlatformApi: Send {
fn calibrate(&mut self, window_id: WindowId) -> Result<()>;
fn window_list(&self) -> Result<WindowList>;
fn capture_window_screenshot(&self, window_id: WindowId) -> Result<ImageOnHeap>;
fn get_active_window(&self) -> Result<WindowId>;
}
why is that an issue?
that should not be that hard, but good point. |
PS: convert is just sort of an alias, and the main command that can be used is |
I have an initial build up at https://github.com/xobs/t-rec-rs/tree/win-support It mostly steals from the It doesn't handle borders right now, and the |
I'll also modify it to use the |
There is now a dedicated feature branch for windows-support that is kept in sync with |
I discovered this project is good to see that windows support is planned, I would like to add that if a windows version becomes available, it would be interesting to make it available on the winget |
Implement window grabbing and screenshotting capabilities for windows.
The interface that needs to be implemented is very simple and straight forward:
Additionally, some inspiration on the windows APIs in rust can be drawn from here
The text was updated successfully, but these errors were encountered: