Skip to main content

Crate wgc

Crate wgc 

Source
Expand description

An ergonomic, high-level Rust wrapper for the Windows.Graphics.Capture API.

This crate provides safe and idiomatic Rust bindings for screen and window capture functionality on Windows.

Repository: GitHub

Getting Started: Tutorial

Re-exports§

pub use settings::*;
pub use frame::*;
pub use capture::*;
pub use error::*;
pub use capabilities::*;

Modules§

capabilities
capture
error
frame
monitor
picker
settings
window

Functions§

new_item_from_hwnd
Creates a new GraphicsCaptureItem from a window handle.
new_item_from_monitor
Creates a new GraphicsCaptureItem from a monitor handle.
new_item_with_picker
Presents a picker UI to allow the user to select a window or monitor for graphics capture.