class LayoutInfo

Defined at line 779 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/cpp/fidl/fuchsia.ui.composition/cpp/natural_types.h

The return type of [`GetLayout`]. This table contains most of the information necessary

for a client to decide how to layout their content in a Flatland instance. This data may be

provided to the client before the command that creates the View is presented, so that the

client may lay out content properly before their first call to [`Present`].

Public Methods

void LayoutInfo (Storage_ storage)
void LayoutInfo ()

Defined at line 784 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/cpp/fidl/fuchsia.ui.composition/cpp/natural_types.h

void LayoutInfo (LayoutInfo && )

Defined at line 785 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/cpp/fidl/fuchsia.ui.composition/cpp/natural_types.h

void LayoutInfo (const LayoutInfo & other)
LayoutInfo & operator= (LayoutInfo && )

Defined at line 786 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/cpp/fidl/fuchsia.ui.composition/cpp/natural_types.h

LayoutInfo & operator= (const LayoutInfo & other)
bool operator== (const LayoutInfo & other)
bool operator!= (const LayoutInfo & other)
bool IsEmpty ()
const std::optional< ::fuchsia_math::SizeU> & logical_size ()

The layout size of a View in logical pixels, defined by the parent's call to

[`SetViewportProperties`].

The logical size also serves as the clip boundary of the View. Anything outside the clip

boundary will not be rendered. Hence, the View's Root Transform has a useful coordinate

space of (0, 0) to (logical_size.width, logical_size.height).

Clients should re-layout their content when this value changes.

::std::optional< ::fuchsia_math::SizeU> & logical_size ()

The layout size of a View in logical pixels, defined by the parent's call to

[`SetViewportProperties`].

The logical size also serves as the clip boundary of the View. Anything outside the clip

boundary will not be rendered. Hence, the View's Root Transform has a useful coordinate

space of (0, 0) to (logical_size.width, logical_size.height).

Clients should re-layout their content when this value changes.

LayoutInfo & logical_size (std::optional< ::fuchsia_math::SizeU> value)

The layout size of a View in logical pixels, defined by the parent's call to

[`SetViewportProperties`].

The logical size also serves as the clip boundary of the View. Anything outside the clip

boundary will not be rendered. Hence, the View's Root Transform has a useful coordinate

space of (0, 0) to (logical_size.width, logical_size.height).

Clients should re-layout their content when this value changes.

const std::optional< ::fuchsia_math::VecF> & device_pixel_ratio ()

The ratio of display's physical pixels to device independent pixels. Each logical pixel of a

View is displayed on-screen by one or more physical pixels, as determined by this scale.

Clients should not necessarily re-layout their content when this value changes, but

accommodate by reallocating their Image buffers to avoid sampling artifacts. The HiDPI-aware

client should allocate buffers that are sized (`logical_size`*`device_pixel_ratio`).

::std::optional< ::fuchsia_math::VecF> & device_pixel_ratio ()

The ratio of display's physical pixels to device independent pixels. Each logical pixel of a

View is displayed on-screen by one or more physical pixels, as determined by this scale.

Clients should not necessarily re-layout their content when this value changes, but

accommodate by reallocating their Image buffers to avoid sampling artifacts. The HiDPI-aware

client should allocate buffers that are sized (`logical_size`*`device_pixel_ratio`).

LayoutInfo & device_pixel_ratio (std::optional< ::fuchsia_math::VecF> value)

The ratio of display's physical pixels to device independent pixels. Each logical pixel of a

View is displayed on-screen by one or more physical pixels, as determined by this scale.

Clients should not necessarily re-layout their content when this value changes, but

accommodate by reallocating their Image buffers to avoid sampling artifacts. The HiDPI-aware

client should allocate buffers that are sized (`logical_size`*`device_pixel_ratio`).

const std::optional< ::fuchsia_math::Inset> & inset ()

The offsets between the edges and the visible rectangle of the View. The clients can assume

that the boundary region between the inset and the View edge is occluded, and should adjust

content layout to avoid this region. This inset is described in the view's logical

coordinate system. The HiDPI-aware clients should scale this by `device_pixel_ratio`.

::std::optional< ::fuchsia_math::Inset> & inset ()

The offsets between the edges and the visible rectangle of the View. The clients can assume

that the boundary region between the inset and the View edge is occluded, and should adjust

content layout to avoid this region. This inset is described in the view's logical

coordinate system. The HiDPI-aware clients should scale this by `device_pixel_ratio`.

LayoutInfo & inset (std::optional< ::fuchsia_math::Inset> value)

The offsets between the edges and the visible rectangle of the View. The clients can assume

that the boundary region between the inset and the View edge is occluded, and should adjust

content layout to avoid this region. This inset is described in the view's logical

coordinate system. The HiDPI-aware clients should scale this by `device_pixel_ratio`.

void LayoutInfo (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits