struct SetClipCmd
Defined at line 2650 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/wire_types.h
Sets/clears a node's clip. DEPRECATED: use SetClipPlanesCmd.
Constraints:
- `node_id` refs a `Node` with the has_clip characteristic.
- `clip_id` a `Node` with the is_clip characteristic, or nothing. If the
referenced node is not rooted, then it will have no effect (since its
full world-transform cannot be determined).
- `clip_to_self` If false, children are only clipped to the region specified
by `clip_id`. If true, children are additionally clipped to the node's
shape (as determined by its ShapeNode parts).
Discussion:
If a node has a clip, it will be applied to both the parts and the children
of the node. Under some circumstances (TBD), a clip will not be applicable
to a node; in such cases it will be as though no clip has been specified for
the node.
Public Members
uint32_t node_id
uint32_t clip_id
bool clip_to_self