class ViewRefControl
Defined at line 574 of file fidling/gen/sdk/fidl/fuchsia.ui.views/fuchsia.ui.views/cpp/fidl/fuchsia.ui.views/cpp/natural_types.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 Methods
void ViewRefControl (Storage_ storage)
void ViewRefControl (::zx::eventpair reference)
void ViewRefControl ()
Default constructs a |ViewRefControl| only if all of its members are default constructible.
Defined at line 585 of file fidling/gen/sdk/fidl/fuchsia.ui.views/fuchsia.ui.views/cpp/fidl/fuchsia.ui.views/cpp/natural_types.h
void ViewRefControl (ViewRefControl && )
Defined at line 588 of file fidling/gen/sdk/fidl/fuchsia.ui.views/fuchsia.ui.views/cpp/fidl/fuchsia.ui.views/cpp/natural_types.h
ViewRefControl & operator= (ViewRefControl && )
Defined at line 589 of file fidling/gen/sdk/fidl/fuchsia.ui.views/fuchsia.ui.views/cpp/fidl/fuchsia.ui.views/cpp/natural_types.h
const ::zx::eventpair & reference ()
::zx::eventpair & reference ()
ViewRefControl & reference (::zx::eventpair value)
Setter for reference.
void ViewRefControl (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalStructCodingTraits