pub struct DisplayOutput {Show 13 fields
pub id: u32,
pub connector_id: u32,
pub crtc_id: u32,
pub width: u32,
pub height: u32,
pub refresh_hz: u32,
pub x_offset: i32,
pub y_offset: i32,
pub enabled: bool,
pub primary: bool,
pub connected: bool,
pub physical_width_mm: u32,
pub physical_height_mm: u32,
}Expand description
Represents a single display output (physical monitor/connector)
Fields§
§id: u32Unique output identifier
connector_id: u32DRM connector ID
crtc_id: u32DRM CRTC ID assigned to this output
width: u32Display width in pixels
height: u32Display height in pixels
refresh_hz: u32Refresh rate in millihertz
x_offset: i32X offset in virtual desktop coordinates
y_offset: i32Y offset in virtual desktop coordinates
enabled: boolWhether this output is enabled
primary: boolWhether this is the primary output
connected: boolDRM connector connection status
physical_width_mm: u32Physical width in mm (from EDID)
physical_height_mm: u32Physical height in mm (from EDID)
Implementations§
Source§impl DisplayOutput
impl DisplayOutput
Sourcepub fn right_edge(&self) -> i32
pub fn right_edge(&self) -> i32
Get the right edge of this output in virtual desktop coordinates
Sourcepub fn bottom_edge(&self) -> i32
pub fn bottom_edge(&self) -> i32
Get the bottom edge of this output in virtual desktop coordinates
Sourcepub fn contains_point(&self, x: i32, y: i32) -> bool
pub fn contains_point(&self, x: i32, y: i32) -> bool
Check if a point falls within this output
Trait Implementations§
Source§impl Clone for DisplayOutput
impl Clone for DisplayOutput
Source§fn clone(&self) -> DisplayOutput
fn clone(&self) -> DisplayOutput
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DisplayOutput
impl Debug for DisplayOutput
Source§impl Default for DisplayOutput
impl Default for DisplayOutput
impl Copy for DisplayOutput
Auto Trait Implementations§
impl Freeze for DisplayOutput
impl RefUnwindSafe for DisplayOutput
impl Send for DisplayOutput
impl Sync for DisplayOutput
impl Unpin for DisplayOutput
impl UnwindSafe for DisplayOutput
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)