pub struct CoordinatorSetLayerPrimaryPositionRequest {
pub layer_id: LayerId,
pub image_source_transformation: CoordinateTransformation,
pub image_source: RectU,
pub display_destination: RectU,
}
Fields§
§layer_id: LayerId
§image_source_transformation: CoordinateTransformation
Applied to the input image pixels specified by image_source
.
display_destination
must account for image dimensions changes
caused by rotations. For example, rotating a 600x300 pixel image by
90 degrees would specify 300x600 pixel dimensions in
display_destination
.
image_source: RectU
The associated image region whose pixels are drawn by the layer.
The rectangle uses the Vulkan coordinate space. The origin is at the image’s top-left corner. The X axis points to the right, and the Y axis points downwards.
A valid layer definition requires a valid non-empty image source rectangle that is entirely contained within the image.
Hardware image cropping is requested implicitly, when the source region’s dimensions differ from the image’s dimensions. Some display hardware may not support cropping.
display_destination: RectU
The display image (composited output) region occupied by the layer.
The rectangle uses the Vulkan coordinate space. The origin is at the display’s top-left corner. The X axis points to the right, and the Y axis points downwards.
A valid layer definition requires a valid non-empty display destination rectangle that is entirely contained within the display.
Hardware image scaling is requested implicitly, when the output
region’s dimensions differ from the dimensions of image_source
.
Some display hardware may not support scaling. All display hardware
has limitations in scaling support.
Trait Implementations§
Source§impl Clone for CoordinatorSetLayerPrimaryPositionRequest
impl Clone for CoordinatorSetLayerPrimaryPositionRequest
Source§fn clone(&self) -> CoordinatorSetLayerPrimaryPositionRequest
fn clone(&self) -> CoordinatorSetLayerPrimaryPositionRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<D: ResourceDialect> Decode<CoordinatorSetLayerPrimaryPositionRequest, D> for CoordinatorSetLayerPrimaryPositionRequest
impl<D: ResourceDialect> Decode<CoordinatorSetLayerPrimaryPositionRequest, D> for CoordinatorSetLayerPrimaryPositionRequest
Source§impl<D: ResourceDialect> Encode<CoordinatorSetLayerPrimaryPositionRequest, D> for &CoordinatorSetLayerPrimaryPositionRequest
impl<D: ResourceDialect> Encode<CoordinatorSetLayerPrimaryPositionRequest, D> for &CoordinatorSetLayerPrimaryPositionRequest
Source§impl<D: ResourceDialect, T0: Encode<LayerId, D>, T1: Encode<CoordinateTransformation, D>, T2: Encode<RectU, D>, T3: Encode<RectU, D>> Encode<CoordinatorSetLayerPrimaryPositionRequest, D> for (T0, T1, T2, T3)
impl<D: ResourceDialect, T0: Encode<LayerId, D>, T1: Encode<CoordinateTransformation, D>, T2: Encode<RectU, D>, T3: Encode<RectU, D>> Encode<CoordinatorSetLayerPrimaryPositionRequest, D> for (T0, T1, T2, T3)
Source§impl PartialEq for CoordinatorSetLayerPrimaryPositionRequest
impl PartialEq for CoordinatorSetLayerPrimaryPositionRequest
Source§fn eq(&self, other: &CoordinatorSetLayerPrimaryPositionRequest) -> bool
fn eq(&self, other: &CoordinatorSetLayerPrimaryPositionRequest) -> bool
self
and other
values to be equal, and is used by ==
.Source§impl TypeMarker for CoordinatorSetLayerPrimaryPositionRequest
impl TypeMarker for CoordinatorSetLayerPrimaryPositionRequest
Source§type Owned = CoordinatorSetLayerPrimaryPositionRequest
type Owned = CoordinatorSetLayerPrimaryPositionRequest
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.Source§impl ValueTypeMarker for CoordinatorSetLayerPrimaryPositionRequest
impl ValueTypeMarker for CoordinatorSetLayerPrimaryPositionRequest
Source§type Borrowed<'a> = &'a CoordinatorSetLayerPrimaryPositionRequest
type Borrowed<'a> = &'a CoordinatorSetLayerPrimaryPositionRequest
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for CoordinatorSetLayerPrimaryPositionRequest
impl StructuralPartialEq for CoordinatorSetLayerPrimaryPositionRequest
Auto Trait Implementations§
impl Freeze for CoordinatorSetLayerPrimaryPositionRequest
impl RefUnwindSafe for CoordinatorSetLayerPrimaryPositionRequest
impl Send for CoordinatorSetLayerPrimaryPositionRequest
impl Sync for CoordinatorSetLayerPrimaryPositionRequest
impl Unpin for CoordinatorSetLayerPrimaryPositionRequest
impl UnwindSafe for CoordinatorSetLayerPrimaryPositionRequest
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)