{"id":20542755,"url":"https://github.com/jerryshell/windows-ez-overlay","last_synced_at":"2025-04-14T09:30:18.314Z","repository":{"id":215886027,"uuid":"739868498","full_name":"jerryshell/windows-ez-overlay","owner":"jerryshell","description":"Windows EZ Overlay for Rust 🦀","archived":false,"fork":false,"pushed_at":"2025-02-26T09:23:55.000Z","size":46,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T22:43:18.074Z","etag":null,"topics":["overlay","rust","windows"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jerryshell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-06T19:39:02.000Z","updated_at":"2025-02-26T09:23:59.000Z","dependencies_parsed_at":"2024-01-21T04:28:42.742Z","dependency_job_id":"e2d95777-e43d-4f0c-95f1-f09ead5d3e4c","html_url":"https://github.com/jerryshell/windows-ez-overlay","commit_stats":null,"previous_names":["jerryshell/windows-ez-overlay"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryshell%2Fwindows-ez-overlay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryshell%2Fwindows-ez-overlay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryshell%2Fwindows-ez-overlay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryshell%2Fwindows-ez-overlay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerryshell","download_url":"https://codeload.github.com/jerryshell/windows-ez-overlay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248854037,"owners_count":21172282,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["overlay","rust","windows"],"created_at":"2024-11-16T01:34:10.063Z","updated_at":"2025-04-14T09:30:18.295Z","avatar_url":"https://github.com/jerryshell.png","language":"Rust","readme":"# Windows EZ Overlay for Rust 🦀\n\nWindows Direct2D overlay\n\n## How to use\n\n1. Cargo.toml\n\n```toml\nwindows-ez-overlay = { git = \"https://github.com/jerryshell/windows-ez-overlay\" }\n```\n\n2. Rust code\n\n```rust\n// init draw_rect_list, ez-overlay will draw Rectangle using draw_rect_list\nlet draw_rect_list = Arc::new(RwLock::new(Vec::\u003cRECT\u003e::with_capacity(32)));\n\n// get target window info\nlet game_window = FindWindowA(None, s!(\"AssaultCube\"));\nlet mut window_info = WINDOWINFO::default();\nGetWindowInfo(game_window, \u0026mut window_info);\n\n// init ez-overlay with window_info and draw_rect_list\nlet draw_rect_list_clone = Arc::clone(\u0026draw_rect_list);\nstd::thread::spawn(move || {\n    let mut overlay = windows_ez_overlay::Overlay::new(\n        window_info.rcClient.left,\n        window_info.rcClient.top,\n        window_info.rcClient.right,\n        window_info.rcClient.bottom,\n        draw_rect_list_clone,\n        true,\n    ).unwrap();\n    overlay.run().unwrap();\n});\n\n// ... do your stuff ...\n\n{\n    let mut draw_rect_list = draw_rect_list.write().unwrap();\n    // update draw_rect_list from here\n}\n```\n\n## Test\n\n```bash\ncargo test\n```\n\n## Example\n\n[ac-esp | AssaultCube ESP DLL with Rust 🦀](https://github.com/jerryshell/ac-esp)\n\n## License\n\n[GNU Affero General Public License v3.0](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerryshell%2Fwindows-ez-overlay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerryshell%2Fwindows-ez-overlay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerryshell%2Fwindows-ez-overlay/lists"}