class ViewDescriptor
Defined at line 319 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
Data for a particular view: identifier, position, and children.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
ViewDescriptor & set_view_ref_koid (uint64_t _value)
ViewDescriptor & set_layout (::fuchsia::ui::observation::geometry::Layout _value)
ViewDescriptor & set_extent_in_context (::fuchsia::ui::observation::geometry::RotatableExtent _value)
ViewDescriptor & set_extent_in_parent (::fuchsia::ui::observation::geometry::RotatableExtent _value)
ViewDescriptor & set_children (::std::vector<uint32_t> _value)
void ViewDescriptor ()
void ViewDescriptor (ViewDescriptor && other)
void ~ViewDescriptor ()
ViewDescriptor & operator= (ViewDescriptor && other)
::std::unique_ptr<ViewDescriptor> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, ViewDescriptor * _value, size_t _offset)
zx_status_t Clone (ViewDescriptor * _result)
const uint64_t & view_ref_koid ()
This view's fuchsia.ui.views.ViewRef koid.
Defined at line 326 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
bool has_view_ref_koid ()
Defined at line 330 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
uint64_t * mutable_view_ref_koid ()
This view's fuchsia.ui.views.ViewRef koid.
Defined at line 335 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
void clear_view_ref_koid ()
Defined at line 343 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
const ::fuchsia::ui::observation::geometry::Layout & layout ()
This view's origin, logical size, pixel scale, and inset data, in the view's
own coordinate system.
Limitations. Data consistency between server and client depend on the
specific graphics API. Some APIs provide weak consistency, where the
server-side data (this data) and the client-side data (in the view's UI
client) are allowed to diverge for some time.
Defined at line 358 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
bool has_layout ()
Defined at line 362 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
::fuchsia::ui::observation::geometry::Layout * mutable_layout ()
This view's origin, logical size, pixel scale, and inset data, in the view's
own coordinate system.
Limitations. Data consistency between server and client depend on the
specific graphics API. Some APIs provide weak consistency, where the
server-side data (this data) and the client-side data (in the view's UI
client) are allowed to diverge for some time.
Defined at line 373 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
void clear_layout ()
Defined at line 381 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
const ::fuchsia::ui::observation::geometry::RotatableExtent & extent_in_context ()
This view's extent, in the context view's coordinate system.
It does NOT describe the child view's logical size.
This describes the "ground truth" position of this view within the context
view, regardless of view tree depth, or specific layout state of
intermediate views.
Limitations. It does NOT describe whether the view is "visible" (e.g.,
whether the view has opacity applied, or is not occluded by another view),
and it does NOT describe whether the view is "hittable" (e.g., whether the
view is positioned fully inside of every ancestor view's bounding box).
Defined at line 400 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
bool has_extent_in_context ()
Defined at line 404 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
::fuchsia::ui::observation::geometry::RotatableExtent * mutable_extent_in_context ()
This view's extent, in the context view's coordinate system.
It does NOT describe the child view's logical size.
This describes the "ground truth" position of this view within the context
view, regardless of view tree depth, or specific layout state of
intermediate views.
Limitations. It does NOT describe whether the view is "visible" (e.g.,
whether the view has opacity applied, or is not occluded by another view),
and it does NOT describe whether the view is "hittable" (e.g., whether the
view is positioned fully inside of every ancestor view's bounding box).
Defined at line 419 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
void clear_extent_in_context ()
Defined at line 427 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
const ::fuchsia::ui::observation::geometry::RotatableExtent & extent_in_parent ()
The space occupied within the parent view's coordinate system.
It does NOT describe the child view's logical size.
Defined at line 437 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
bool has_extent_in_parent ()
Defined at line 441 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
::fuchsia::ui::observation::geometry::RotatableExtent * mutable_extent_in_parent ()
The space occupied within the parent view's coordinate system.
It does NOT describe the child view's logical size.
Defined at line 447 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
void clear_extent_in_parent ()
Defined at line 455 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
const ::std::vector<uint32_t> & children ()
The list of child views, in the order known to the graphics API.
Each integer in this vector refers to the child's position in the
|views| or |incomplete| vector that the parent is in.
The identity, position, and size of each child view. Position and size are
described by the extent of the child view within the parent view's
coordinate system.
The view tree topology is reliable. A child placed here is equivalent to
the parent view receiving a "child view connected" signal.
Limitations. A child's view boundary is described in the parent view's
coordinate system, which is subject to weak consistency (depending on the
graphics API). That is, when a parent view has a change in size or metrics,
the context view may observe a "jump" as the parent view incorporates those
data. In such cases, a new ViewTreeSnapshot is issued to describe the
change in position, relative to the context view.
Defined at line 481 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
bool has_children ()
Defined at line 485 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
::std::vector<uint32_t> * mutable_children ()
The list of child views, in the order known to the graphics API.
Each integer in this vector refers to the child's position in the
|views| or |incomplete| vector that the parent is in.
The identity, position, and size of each child view. Position and size are
described by the extent of the child view within the parent view's
coordinate system.
The view tree topology is reliable. A child placed here is equivalent to
the parent view receiving a "child view connected" signal.
Limitations. A child's view boundary is described in the parent view's
coordinate system, which is subject to weak consistency (depending on the
graphics API). That is, when a parent view has a change in size or metrics,
the context view may observe a "jump" as the parent view incorporates those
data. In such cases, a new ViewTreeSnapshot is issued to describe the
change in position, relative to the context view.
Defined at line 507 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h
void clear_children ()
Defined at line 515 of file fidling/gen/sdk/fidl/fuchsia.ui.observation.geometry/fuchsia.ui.observation.geometry/hlcpp/fuchsia/ui/observation/geometry/cpp/fidl.h