Expand description
Contains functionality for working with windows and capturing specific windows:
crate::window::Window.
Utilities for querying and working with top-level windows.
Provides [Window] for finding and inspecting windows (title, process),
testing capture suitability, enumerating capturable windows, and converting
a window into a graphics capture item.
Common tasks include:
- Getting the foreground window via [
Window::foreground]. - Finding by exact title via [
Window::from_name]. - Finding by substring via [
Window::from_contains_name]. - Enumerating capturable windows via [
Window::enumerate]. - Getting the owning process name via [
Window::process_name]. - Computing the title bar height via [
Window::title_bar_height].
To acquire a crate::GraphicsCaptureItem for a window, use
[crate::settings::TryIntoCaptureItemWithDetails] for [Window].
Structs§
- Window
- Represents a window that can be captured.