class ViewRefControl

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

A ViewRefControl is the peer to a ViewRef. Their `reference`s are linked.

Like ViewRef, a ViewRefControl is a typed handle to an eventpair. Unlike

ViewRef, a ViewRefControl's handle is unique. Scenic uses this property

when it ties a ViewRefControl to a View, arranged to share fate. When a

View is destroyed, the associated destruction of its ViewRefControl

triggers an automatic `ZX_EVENTPAIR_PEER_CLOSED` signal sent to all ViewRef

holders; hence ViewRef holders may track View lifetime.

As part of View creation, the client creates a linked

ViewRef/ViewRefControl pair and hands the pair to Scenic (ViewRef is

described above). The client must not clone the ViewRefControl. It must

not remove or modify the ViewRefControl's capabilities; otherwise the View

is not created.

Public Members

eventpair reference

Public Methods

::std::unique_ptr<ViewRefControl> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, ViewRefControl * value, size_t _offset)
zx_status_t Clone (ViewRefControl * result)