⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

DisplayOutput

Struct DisplayOutput 

Source
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: u32

Unique output identifier

§connector_id: u32

DRM connector ID

§crtc_id: u32

DRM CRTC ID assigned to this output

§width: u32

Display width in pixels

§height: u32

Display height in pixels

§refresh_hz: u32

Refresh rate in millihertz

§x_offset: i32

X offset in virtual desktop coordinates

§y_offset: i32

Y offset in virtual desktop coordinates

§enabled: bool

Whether this output is enabled

§primary: bool

Whether this is the primary output

§connected: bool

DRM connector connection status

§physical_width_mm: u32

Physical width in mm (from EDID)

§physical_height_mm: u32

Physical height in mm (from EDID)

Implementations§

Source§

impl DisplayOutput

Source

pub fn right_edge(&self) -> i32

Get the right edge of this output in virtual desktop coordinates

Source

pub fn bottom_edge(&self) -> i32

Get the bottom edge of this output in virtual desktop coordinates

Source

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

Source§

fn clone(&self) -> DisplayOutput

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for DisplayOutput

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DisplayOutput

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.