class AddPartCmd
Defined at line 816 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h
Add a node as a part of another node. The implications of being a part
rather than a child differ based on the type of the part. However, one
implication is constant: removing all of a node's children (e.g. via
DetachChildrenCmd) does not affect its parts. This is similar to the
"shadow DOM" in a web browser: the controls of a
<video
> element are
implemented as using the shadow DOM, and do no show up amongst the children
of that element.
Constraints:
- `id` refs a Node with the has_parts characteristic.
- `part_id` refs any Node.
Discussion:
The part node is first removed from its existing parent, as if DetachCmd
was applied first.
Public Methods
void AddPartCmd (Storage_ storage)
void AddPartCmd (uint32_t node_id, uint32_t part_id)
void AddPartCmd ()
Default constructs a |AddPartCmd| only if all of its members are default constructible.
Defined at line 826 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h
void AddPartCmd (AddPartCmd && )
Defined at line 829 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h
void AddPartCmd (const AddPartCmd & other)
AddPartCmd & operator= (AddPartCmd && )
Defined at line 830 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/natural_types.h
AddPartCmd & operator= (const AddPartCmd & other)
bool operator== (const AddPartCmd & other)
bool operator!= (const AddPartCmd & other)
uint32_t node_id ()
uint32_t & node_id ()
AddPartCmd & node_id (uint32_t value)
Setter for node_id.
uint32_t part_id ()
uint32_t & part_id ()
AddPartCmd & part_id (uint32_t value)
Setter for part_id.
void AddPartCmd (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalStructCodingTraits