pub struct HyprlandMonitor {
pub id: i64,
pub name: String,
pub description: String,
pub focused: bool,
pub active_workspace: String,
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
pub scale: f64,
}Expand description
One of Hyprland’s monitors, as j/monitors describes it.
Fields§
§id: i64Hyprland’s number for it.
name: StringIts name, such as DP-1, as the output’s name.
description: StringIts make, model and serial, as Hyprland puts them.
focused: boolWhether it has the focus.
active_workspace: StringThe name of the workspace it shows.
x: i32Where its left edge is, in the layout’s logical pixels.
y: i32Where its top edge is, in the layout’s logical pixels.
width: i32Its mode’s width, in pixels before scaling.
height: i32Its mode’s height, in pixels before scaling.
scale: f64Its scale, such as 1.5.
Trait Implementations§
Source§impl Clone for HyprlandMonitor
impl Clone for HyprlandMonitor
Source§impl Debug for HyprlandMonitor
impl Debug for HyprlandMonitor
Source§impl PartialEq for HyprlandMonitor
impl PartialEq for HyprlandMonitor
impl StructuralPartialEq for HyprlandMonitor
Auto Trait Implementations§
impl Forget for HyprlandMonitor
impl Freeze for HyprlandMonitor
impl Move for HyprlandMonitor
impl RefUnwindSafe for HyprlandMonitor
impl Send for HyprlandMonitor
impl Sync for HyprlandMonitor
impl Unpin for HyprlandMonitor
impl UnsafeUnpin for HyprlandMonitor
impl UnwindSafe for HyprlandMonitor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more