class SetClipCmd
Defined at line 791 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/hlcpp/fuchsia/ui/gfx/cpp/fidl.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
Public Methods
::std::unique_ptr<SetClipCmd> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, SetClipCmd * value, size_t _offset)
zx_status_t Clone (SetClipCmd * result)