/
githubmirror
/
tauri
Обзор
Документация
Войти
/
githubmirror
/
tauri
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
crates/tauri-runtime/src/monitor.rs
21 строка
797 B
Amr Bashir
feat: add workarea getter for monitor (#13276)
23 апр 2025, 04:29
Не верифицирован
23 апр 2025, 04:29
267368f
Код
Авторство
О чём код?
// Copyright 2019-2024 Tauri Programme within The Commons Conservancy // SPDX-License-Identifier: Apache-2.0 // SPDX-License-Identifier: MIT use crate::dpi::{PhysicalPosition, PhysicalRect, PhysicalSize}; /// Monitor descriptor. #[derive(Debug, Clone)] pub struct Monitor { /// A human-readable name of the monitor. /// `None` if the monitor doesn't exist anymore. pub name: Option<String>, /// The monitor's resolution. pub size: PhysicalSize<u32>, /// The top-left corner position of the monitor relative to the larger full screen area. pub position: PhysicalPosition<i32>, /// The monitor's work_area. pub work_area: PhysicalRect<i32, u32>, /// Returns the scale factor that can be used to map logical pixels to physical pixels, and vice versa. pub scale_factor: f64, }