Files
LLeMbas-TTY/window/src/screen.rs
T
Wez Furlong 6ccbc723ba wezterm.gui.screens: add optional effective_dpi field
This commit implements it for Windows. The other systems
report None for now.
2023-08-06 09:18:40 -07:00

20 lines
423 B
Rust

use crate::ScreenRect;
use std::collections::HashMap;
#[derive(Debug, Clone)]
pub struct Screens {
pub main: ScreenInfo,
pub active: ScreenInfo,
pub by_name: HashMap<String, ScreenInfo>,
pub virtual_rect: ScreenRect,
}
#[derive(Debug, Clone)]
pub struct ScreenInfo {
pub name: String,
pub rect: ScreenRect,
pub scale: f64,
pub max_fps: Option<usize>,
pub effective_dpi: Option<f64>,
}