Struct SetClipCmd
pub struct SetClipCmd {
pub node_id: u32,
pub clip_id: u32,
pub clip_to_self: bool,
}
Expand description
Sets/clears a node’s clip. DEPRECATED: use SetClipPlanesCmd.
Constraints:
node_id
refs aNode
with the has_clip characteristic.clip_id
aNode
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 byclip_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.
Fields§
§node_id: u32
§clip_id: u32
§clip_to_self: bool
Trait Implementations§
§impl Clone for SetClipCmd
impl Clone for SetClipCmd
§fn clone(&self) -> SetClipCmd
fn clone(&self) -> SetClipCmd
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for SetClipCmd
impl Debug for SetClipCmd
§impl<D> Decode<SetClipCmd, D> for SetClipCmdwhere
D: ResourceDialect,
impl<D> Decode<SetClipCmd, D> for SetClipCmdwhere
D: ResourceDialect,
§fn new_empty() -> SetClipCmd
fn new_empty() -> SetClipCmd
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<SetClipCmd, D> for &SetClipCmdwhere
D: ResourceDialect,
impl<D> Encode<SetClipCmd, D> for &SetClipCmdwhere
D: ResourceDialect,
§impl Hash for SetClipCmd
impl Hash for SetClipCmd
§impl Ord for SetClipCmd
impl Ord for SetClipCmd
§impl PartialEq for SetClipCmd
impl PartialEq for SetClipCmd
§impl PartialOrd for SetClipCmd
impl PartialOrd for SetClipCmd
§impl TypeMarker for SetClipCmd
impl TypeMarker for SetClipCmd
§type Owned = SetClipCmd
type Owned = SetClipCmd
The owned Rust type which this FIDL type decodes into.
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for SetClipCmd
impl ValueTypeMarker for SetClipCmd
§type Borrowed<'a> = &'a SetClipCmd
type Borrowed<'a> = &'a SetClipCmd
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<SetClipCmd as TypeMarker>::Owned,
) -> <SetClipCmd as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<SetClipCmd as TypeMarker>::Owned, ) -> <SetClipCmd as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for SetClipCmd
impl Eq for SetClipCmd
impl Persistable for SetClipCmd
impl StructuralPartialEq for SetClipCmd
Auto Trait Implementations§
impl Freeze for SetClipCmd
impl RefUnwindSafe for SetClipCmd
impl Send for SetClipCmd
impl Sync for SetClipCmd
impl Unpin for SetClipCmd
impl UnwindSafe for SetClipCmd
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more