pub struct Metrics {
pub extent_in_px: Option<SizeU>,
pub extent_in_mm: Option<SizeU>,
pub recommended_device_pixel_ratio: Option<VecF>,
pub maximum_refresh_rate_in_millihertz: Option<u32>,
/* private fields */
}
Expand description
Describes the physical display, and how to map between physical and logical pixels.
Fields§
§extent_in_px: Option<SizeU>
Same meaning as horizontal_resolution
and vertical_resolution
in fuchsia.hardware.display.Mode
. Given in physical pixels.
extent_in_mm: Option<SizeU>
Same meaning as horizontal_size_mm
and vertical_size_mm
in fuchsia.hardware.display.Info
.
recommended_device_pixel_ratio: Option<VecF>
The number of physical pixels per “logical” pixel, for example as in
fuchsia.ui.composition.LayoutInfo.logical_size
. It provides an indication
of the size of image buffers that should be allocated. This value would typically
be used by a component near the root of the scene graph to set a scale for the rest
of the scene beneath.
maximum_refresh_rate_in_millihertz: Option<u32>
The maximum mumber of images transmitted to the display in 1000 seconds. This is the display’s maximum vertical refresh rate, in millihertz (0.001 Hz).
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Metrics, D> for Metrics
impl<D: ResourceDialect> Decode<Metrics, D> for Metrics
Source§impl TypeMarker for Metrics
impl TypeMarker for Metrics
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
.§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 more§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.