We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
系统:Darwin 代码(参考示例):
use std::time::Instant; use xcap::Window; fn normalized(filename: &str) -> String { filename.replace(['|', '\\', ':', '/'], "") } #[test] fn main() { let start = Instant::now(); let windows = Window::all().unwrap(); for window in windows { println!( "Window: {:?} {:?} {:?}", window.title().unwrap(), ( window.x().unwrap(), window.y().unwrap(), window.width().unwrap(), window.height().unwrap() ), ( window.is_minimized().unwrap(), window.is_maximized().unwrap() ) ); } println!("运行耗时: {:?}", start.elapsed()); }
输出:
Window: "Menubar" (0, 0, 1728, 37) (false, false) 运行耗时: 69.463125ms
The text was updated successfully, but these errors were encountered:
什么版本?有给程序授权截图权限吗
Sorry, something went wrong.
解决了,权限问题,给了就好了,不过有没有什么函数能自动开启系统授权的
No branches or pull requests
系统:Darwin
代码(参考示例):
输出:
The text was updated successfully, but these errors were encountered: