class SizeChangeHintEvent
Defined at line 3060 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h
Delivered in response to a size change hint from a parent node
(SendSizeChangeHintCmd).
This event is delivered when the following conditions are true:
- The node has `kSizeChangeEventMask` set to an enabled state.
- A parent node has sent a SendSizeChangeHintCmd.
Subscribe to this event to receive information about how large textures you
will need in the near future for your nodes. The canonical use case is to
pre-allocate memory to avoid repeated re-allocations.
Public Methods
void SizeChangeHintEvent (Storage_ storage)
void SizeChangeHintEvent (uint32_t node_id, float width_change_factor, float height_change_factor)
void SizeChangeHintEvent ()
Default constructs a |SizeChangeHintEvent| only if all of its members are default constructible.
Defined at line 3070 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h
void SizeChangeHintEvent (SizeChangeHintEvent && )
Defined at line 3073 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h
void SizeChangeHintEvent (const SizeChangeHintEvent & other)
SizeChangeHintEvent & operator= (SizeChangeHintEvent && )
Defined at line 3074 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h
SizeChangeHintEvent & operator= (const SizeChangeHintEvent & other)
bool operator== (const SizeChangeHintEvent & other)
bool operator!= (const SizeChangeHintEvent & other)
uint32_t node_id ()
uint32_t & node_id ()
SizeChangeHintEvent & node_id (uint32_t value)
Setter for node_id.
float width_change_factor ()
float & width_change_factor ()
SizeChangeHintEvent & width_change_factor (float value)
Setter for width_change_factor.
float height_change_factor ()
float & height_change_factor ()
SizeChangeHintEvent & height_change_factor (float value)
Setter for height_change_factor.
void SizeChangeHintEvent (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalStructCodingTraits