focus_tracker_core/focus_window.rs
1/// Snapshot of the currently focused window.
2#[derive(Debug, Clone, PartialEq, Eq)]
3pub struct FocusedWindow {
4 /// Process ID of the focused window.
5 pub process_id: u32,
6 /// Reported process name, if not available nothing is reported.
7 pub process_name: String,
8 /// Full window title/caption as provided by the OS.
9 pub window_title: Option<String>,
10 /// Raw icon data (may be `None` if not retrievable on the platform).
11 pub icon: Option<image::RgbaImage>,
12}