template <typename BuilderImpl>

class WireTableBaseBuilder

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

Public Methods

::fuchsia_ui_composition::wire::LayoutInfo Build ()

Build and return the table. The builder should not be used after this.

bool has_logical_size ()
void clear_logical_size ()

Clears the logical_size field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

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

BuilderImpl & logical_size (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fuchsia_math::wire::SizeU>> elem)

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_device_pixel_ratio ()
void clear_device_pixel_ratio ()

Clears the device_pixel_ratio field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

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

BuilderImpl & device_pixel_ratio (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fuchsia_math::wire::VecF>> elem)

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_inset ()
void clear_inset ()

Clears the inset field.

This method should be used sparingly, such as only during tests, as it has

O(number_of_fields) complexity.

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

BuilderImpl & inset (Wrapper_Ignore_Me_< ::fidl::ObjectView< ::fuchsia_math::wire::Inset>> elem)

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

Protected Methods

void WireTableBaseBuilder< ::fuchsia_ui_composition::wire::LayoutInfo, BuilderImpl> (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_ui_composition::wire::LayoutInfo>> && frame)

Records