#[repr(C)]pub struct IODisplayModeInformation {
pub nominalWidth: u32,
pub nominalHeight: u32,
pub refreshRate: IOFixed1616,
pub maxDepthIndex: IOIndex,
pub flags: u32,
pub imageWidth: u16,
pub imageHeight: u16,
pub reserved: [u32; 3],
}graphics only.Expand description
A structure defining the format of a framebuffer.
This structure is used by IOFramebuffer to define the format of the pixels.
Field: nominalWidth Number of pixels visible per row.
Field: nominalHeight Number of visible pixel rows.
Field: refreshRate Refresh rate in fixed point 16.16.
Field: maxDepthIndex Highest depth index available in this display mode.
Field: flags Flags for the mode, including:
kDisplayModeInterlacedFlag mode is interlaced.
kDisplayModeSimulscanFlag mode is available on multiple display connections.
kDisplayModeNotPresetFlag mode is not a factory preset for the display (geometry may need correction).
kDisplayModeStretchedFlag mode is stretched/distorted to match the display aspect ratio.
Field: imageWidth Physical width of active image if known, in millimeters, otherwise zero.
Field: imageHeight Physical height of active image if known, in millimeters, otherwise zero.
Field: reserved Set to zero.
See also Apple’s documentation
Fields§
§nominalWidth: u32§nominalHeight: u32§refreshRate: IOFixed1616§maxDepthIndex: IOIndex§flags: u32§imageWidth: u16§imageHeight: u16§reserved: [u32; 3]Trait Implementations§
Source§impl Clone for IODisplayModeInformation
impl Clone for IODisplayModeInformation
Source§fn clone(&self) -> IODisplayModeInformation
fn clone(&self) -> IODisplayModeInformation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IODisplayModeInformation
impl Debug for IODisplayModeInformation
Source§impl Encode for IODisplayModeInformation
Available on crate feature objc2 only.
impl Encode for IODisplayModeInformation
objc2 only.Source§impl PartialEq for IODisplayModeInformation
impl PartialEq for IODisplayModeInformation
Source§impl RefEncode for IODisplayModeInformation
Available on crate feature objc2 only.
impl RefEncode for IODisplayModeInformation
objc2 only.