Struct fidl_fuchsia_hardware_display::Mode
source · #[repr(C)]pub struct Mode {
pub horizontal_resolution: u32,
pub vertical_resolution: u32,
pub refresh_rate_e2: u32,
pub flags: u32,
}
Expand description
Describes an operational mode for a display device attached to the system.
The operational parameters that make up a mode description must be updated atomically, using a resource-intensive “mode setting” operation. Parameters that can be changed quickly, such as brightness and contrast, do not belong in a mode description.
Fields§
§horizontal_resolution: u32
Number of pixels on a horizontal line of the displayed image.
This describes the image data sent to the display, which is also called the “active area” or “active pixels” in raster scan terminology. Despite the name, some of the “active pixels” may not actually be shown to the user, for example due to corners or notches.
vertical_resolution: u32
Number of horizontal lines that make up a displayed image.
This describes the image data sent to the display, which is also called the “active area” or “active pixels” in raster scan terminology. Despite the name, some of the “active pixels” may not actually be shown to the user, for example due to corners or notches.
refresh_rate_e2: u32
Number of images transmitted to the display in 100 seconds.
This is the display’s vertical refresh rate, in centihertz (0.01 Hz).
flags: u32
Bit field of mode attributes.
This field is currently unused. It will be used for binary attributes, such as whether a display mode is interlaced.
Trait Implementations§
source§impl Decode<Mode> for Mode
impl Decode<Mode> for Mode
source§impl<T0: Encode<u32>, T1: Encode<u32>, T2: Encode<u32>, T3: Encode<u32>> Encode<Mode> for (T0, T1, T2, T3)
impl<T0: Encode<u32>, T1: Encode<u32>, T2: Encode<u32>, T3: Encode<u32>> Encode<Mode> for (T0, T1, T2, T3)
source§impl Ord for Mode
impl Ord for Mode
source§impl PartialEq for Mode
impl PartialEq for Mode
source§impl PartialOrd for Mode
impl PartialOrd for Mode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for Mode
impl TypeMarker for Mode
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moresource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.