class ViewportProperties
Defined at line 1691 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/hlcpp/fuchsia/ui/composition/cpp/fidl.h
The properties of a Viewport as defined by the parent. This data, along with the set of attached
Transforms, will be used to compute the LayoutInfo for the View of the Viewport.
`ViewportProperties` must have `logical_size` set at least once. This is the initial size that
will drive the layout of the child.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
const ::fuchsia::math::SizeU & logical_size ()
The size of the Viewport in logical pixels. This maps directly to the logical_size field in
LayoutInfo. The valid logical_size must have positive X and Y components.
Defined at line 1699 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/hlcpp/fuchsia/ui/composition/cpp/fidl.h
bool has_logical_size ()
Defined at line 1703 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/hlcpp/fuchsia/ui/composition/cpp/fidl.h
::fuchsia::math::SizeU * mutable_logical_size ()
The size of the Viewport in logical pixels. This maps directly to the logical_size field in
LayoutInfo. The valid logical_size must have positive X and Y components.
Defined at line 1709 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/hlcpp/fuchsia/ui/composition/cpp/fidl.h
void clear_logical_size ()
Defined at line 1717 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/hlcpp/fuchsia/ui/composition/cpp/fidl.h
const ::fuchsia::math::Inset & inset ()
The offsets between the edges and the visible rectangle of the Viewport. This maps directly
to the `inset` field in LayoutInfo. The valid inset must have all components greater than or
equal to 0.
Defined at line 1728 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/hlcpp/fuchsia/ui/composition/cpp/fidl.h
bool has_inset ()
Defined at line 1732 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/hlcpp/fuchsia/ui/composition/cpp/fidl.h
::fuchsia::math::Inset * mutable_inset ()
The offsets between the edges and the visible rectangle of the Viewport. This maps directly
to the `inset` field in LayoutInfo. The valid inset must have all components greater than or
equal to 0.
Defined at line 1739 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/hlcpp/fuchsia/ui/composition/cpp/fidl.h
void clear_inset ()
Defined at line 1747 of file fidling/gen/sdk/fidl/fuchsia.ui.composition/fuchsia.ui.composition/hlcpp/fuchsia/ui/composition/cpp/fidl.h
ViewportProperties & set_logical_size (::fuchsia::math::SizeU _value)
ViewportProperties & set_inset (::fuchsia::math::Inset _value)
void ViewportProperties ()
void ViewportProperties (ViewportProperties && other)
void ~ViewportProperties ()
ViewportProperties & operator= (ViewportProperties && other)
::std::unique_ptr<ViewportProperties> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, ViewportProperties * _value, size_t _offset)
zx_status_t Clone (ViewportProperties * _result)