class SetMaterialCmd

Defined at line 1024 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h

Sets/clears a node's material.

Constraints:

- `node_id` refs a `Node` with the has_material characteristic.

- `material_id` refs a `Material`, or nothing.

- if this command causes the target to have both a `Shape` and a `Material`,

then these must be compatible with each other (see README.md regarding

"Shape/Material Compatibility").

Discussion:

In order to be painted, a node requires both a `Shape` and a `Material`.

Without a material, a node can still participate in hit-testing and clipping.

Without a shape, a node cannot do any of the above.

Public Methods

void SetMaterialCmd (Storage_ storage)
void SetMaterialCmd (uint32_t node_id, uint32_t material_id)
void SetMaterialCmd ()

Default constructs a |SetMaterialCmd| only if all of its members are default constructible.

Defined at line 1034 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h

void SetMaterialCmd (SetMaterialCmd && )

Defined at line 1037 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h

void SetMaterialCmd (const SetMaterialCmd & other)
SetMaterialCmd & operator= (SetMaterialCmd && )

Defined at line 1038 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h

SetMaterialCmd & operator= (const SetMaterialCmd & other)
bool operator== (const SetMaterialCmd & other)
bool operator!= (const SetMaterialCmd & other)
uint32_t node_id ()
uint32_t & node_id ()
SetMaterialCmd & node_id (uint32_t value)

Setter for node_id.

uint32_t material_id ()
uint32_t & material_id ()
SetMaterialCmd & material_id (uint32_t value)

Setter for material_id.

void SetMaterialCmd (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalStructCodingTraits