class LayoutInfo

Defined at line 714 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/cpp/fidl/fuchsia.ui.composition/cpp/wire_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

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

::fidl::WireTableBuilder< ::fuchsia_ui_composition::wire::LayoutInfo> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_ui_composition::wire::LayoutInfo> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_ui_composition::wire::LayoutInfo>> frame)

Return a builder that relies on explicitly allocating |fidl::ObjectView|s.

void LayoutInfo ()

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

void LayoutInfo (const LayoutInfo & other)

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

LayoutInfo & operator= (const LayoutInfo & other)

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

void LayoutInfo (LayoutInfo && other)

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

::fuchsia_math::wire::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.

bool has_logical_size ()
::fuchsia_math::wire::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`).

bool has_device_pixel_ratio ()
::fuchsia_math::wire::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`.

bool has_inset ()
LayoutInfo & operator= (LayoutInfo && other)

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

void ~LayoutInfo ()

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

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder