class LayoutInfo

Defined at line 1599 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/hlcpp/fuchsia/ui/composition/cpp/fidl.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 session. 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 Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

void LayoutInfo ()
void LayoutInfo (LayoutInfo && other)
const ::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.

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

bool has_logical_size ()

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

::fuchsia::math::SizeU * mutable_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.

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

void clear_logical_size ()

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

const ::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`).

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

bool has_device_pixel_ratio ()

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

::fuchsia::math::VecF * mutable_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`).

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

void clear_device_pixel_ratio ()

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

const ::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`.

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

bool has_inset ()

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

::fuchsia::math::Inset * mutable_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`.

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

void clear_inset ()

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

LayoutInfo & set_logical_size (::fuchsia::math::SizeU _value)
LayoutInfo & set_device_pixel_ratio (::fuchsia::math::VecF _value)
LayoutInfo & set_inset (::fuchsia::math::Inset _value)
void ~LayoutInfo ()
LayoutInfo & operator= (LayoutInfo && other)
::std::unique_ptr<LayoutInfo> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, LayoutInfo * _value, size_t _offset)
zx_status_t Clone (LayoutInfo * _result)