class Metrics
Defined at line 9079 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h
Rendering target metrics associated with a node.
See also `MetricsEvent`.
Public Methods
void Metrics (Storage_ storage)
void Metrics (float scale_x, float scale_y, float scale_z)
void Metrics ()
Default constructs a |Metrics| only if all of its members are default constructible.
Defined at line 9089 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h
void Metrics (Metrics && )
Defined at line 9092 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h
void Metrics (const Metrics & other)
Metrics & operator= (Metrics && )
Defined at line 9093 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h
Metrics & operator= (const Metrics & other)
bool operator== (const Metrics & other)
bool operator!= (const Metrics & other)
float scale_x ()
The ratio between the size of one logical pixel within the node's local
coordinate system and the size of one physical pixel of the rendering
target.
This scale factors change in relation to the resolution of the rendering
target and the scale transformations applied by containing nodes.
They are always strictly positive and non-zero.
For example, suppose the rendering target is a high resolution display
with a device pixel ratio of 2.0 meaning that each logical pixel
within the model corresponds to two physical pixels of the display.
Assuming no scale transformations affect the node, then its metrics event
will report a scale factor of 2.0.
Building on this example, if instead the node's parent applies a
scale transformation of 0.25 to the node, then the node's metrics event
will report a scale factor of 0.5 indicating that the node should render
its content at a reduced resolution and level of detail since a smaller
area of physical pixels (half the size in each dimension) will be rendered.
float & scale_x ()
The ratio between the size of one logical pixel within the node's local
coordinate system and the size of one physical pixel of the rendering
target.
This scale factors change in relation to the resolution of the rendering
target and the scale transformations applied by containing nodes.
They are always strictly positive and non-zero.
For example, suppose the rendering target is a high resolution display
with a device pixel ratio of 2.0 meaning that each logical pixel
within the model corresponds to two physical pixels of the display.
Assuming no scale transformations affect the node, then its metrics event
will report a scale factor of 2.0.
Building on this example, if instead the node's parent applies a
scale transformation of 0.25 to the node, then the node's metrics event
will report a scale factor of 0.5 indicating that the node should render
its content at a reduced resolution and level of detail since a smaller
area of physical pixels (half the size in each dimension) will be rendered.
Metrics & scale_x (float value)
The ratio between the size of one logical pixel within the node's local
coordinate system and the size of one physical pixel of the rendering
target.
This scale factors change in relation to the resolution of the rendering
target and the scale transformations applied by containing nodes.
They are always strictly positive and non-zero.
For example, suppose the rendering target is a high resolution display
with a device pixel ratio of 2.0 meaning that each logical pixel
within the model corresponds to two physical pixels of the display.
Assuming no scale transformations affect the node, then its metrics event
will report a scale factor of 2.0.
Building on this example, if instead the node's parent applies a
scale transformation of 0.25 to the node, then the node's metrics event
will report a scale factor of 0.5 indicating that the node should render
its content at a reduced resolution and level of detail since a smaller
area of physical pixels (half the size in each dimension) will be rendered.
float scale_y ()
float & scale_y ()
Metrics & scale_y (float value)
Setter for scale_y.
float scale_z ()
float & scale_z ()
Metrics & scale_z (float value)
Setter for scale_z.
void Metrics (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalStructCodingTraits