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§
Source§impl Clone for SetClipCmd
impl Clone for SetClipCmd
Source§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 moreSource§impl Debug for SetClipCmd
impl Debug for SetClipCmd
Source§impl<D: ResourceDialect> Decode<SetClipCmd, D> for SetClipCmd
impl<D: ResourceDialect> Decode<SetClipCmd, D> for SetClipCmd
Source§impl<D: ResourceDialect> Encode<SetClipCmd, D> for &SetClipCmd
impl<D: ResourceDialect> Encode<SetClipCmd, D> for &SetClipCmd
Source§impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<u32, D>, T2: Encode<bool, D>> Encode<SetClipCmd, D> for (T0, T1, T2)
impl<D: ResourceDialect, T0: Encode<u32, D>, T1: Encode<u32, D>, T2: Encode<bool, D>> Encode<SetClipCmd, D> for (T0, T1, T2)
Source§impl Hash for SetClipCmd
impl Hash for SetClipCmd
Source§impl Ord for SetClipCmd
impl Ord for SetClipCmd
Source§fn cmp(&self, other: &SetClipCmd) -> Ordering
fn cmp(&self, other: &SetClipCmd) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SetClipCmd
impl PartialEq for SetClipCmd
Source§impl PartialOrd for SetClipCmd
impl PartialOrd for SetClipCmd
Source§impl TypeMarker for SetClipCmd
impl TypeMarker for SetClipCmd
Source§type Owned = SetClipCmd
type Owned = SetClipCmd
The owned Rust type which this FIDL type decodes into.
Source§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.
Source§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.Source§impl ValueTypeMarker for SetClipCmd
impl ValueTypeMarker for SetClipCmd
Source§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 moreimpl 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)