class FlatlandDisplay

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

This API connects to the singleton "primary display", and allows a tree of Flatland content to

be attached underneath. Only one FlatlandDisplay client connection is allowed at one time.

Public Members

static const char[] Name_

Public Methods

void ~FlatlandDisplay ()
void SetContent (::fuchsia::ui::views::ViewportCreationToken token, ::fidl::InterfaceRequest< ::fuchsia::ui::composition::ChildViewWatcher> child_view_watcher)
void SetDevicePixelRatio (::fuchsia::math::VecF device_pixel_ratio)

Sets the ratio of display's physical pixels to device independent pixels that should be used

for the tree of Flatland content that are attached to this display. See

[`LayoutInfo.device_pixel_ratio`] for details.

The default value is (1.0, 1.0). The valid values are 1.0 and above.