x-win 5.6.1

This package allows you to retrieve precise information about active and open windows on Windows, MacOS, and Linux. You can obtain the position, size, title, and other memory of windows.
Documentation
#![deny(unused_imports)]

use super::{process_info::ProcessInfo, usage_info::UsageInfo, window_position::WindowPosition};

/**
 * Struct to store all informations of the window
 */
#[derive(Debug, Clone)]
pub struct WindowInfo {
  pub id: u32,
  pub os: String,
  pub title: String,
  pub position: WindowPosition,
  pub info: ProcessInfo,
  pub usage: UsageInfo,
}

impl WindowInfo {
  pub fn new(
    id: u32,
    os: String,
    title: String,
    position: WindowPosition,
    info: ProcessInfo,
    usage: UsageInfo,
  ) -> Self {
    Self {
      id,
      os,
      title,
      position,
      info,
      usage,
    }
  }
}