struct DisplaySrcDstFrames

Defined at line 48 of file ../../src/ui/scenic/lib/flatland/engine/engine_types.h

Struct to combine the source and destination rectangles used to set a layer's

position on the display. The src rectangle represents the (cropped) UV coordinates

of the image and the dst rectangle represents the position in screen space where

the layer will be placed.

Public Members

Rectangle src
Rectangle dst

Public Methods

DisplaySrcDstFrames New (ImageRect rectangle)

When setting an image on a layer in the display, you have to specify the "source"

and "destination", where the source represents the pixel offsets and dimensions to

use from the image and the destination represents where on the display the (cropped)

image will go in pixel coordinates. This exactly mirrors the setup we have in the

Rectangle2D struct and ImageMetadata struct, so we just need to convert that over to

the proper display controller readable format. The input rectangle contains both the

source and destination information.

Defined at line 19 of file ../../src/ui/scenic/lib/flatland/engine/engine_types.cc