Struct fidl_fuchsia_ui_gfx::SetClipCmd
source · 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 Decode<SetClipCmd> for SetClipCmd
impl Decode<SetClipCmd> for SetClipCmd
source§impl Encode<SetClipCmd> for &SetClipCmd
impl Encode<SetClipCmd> for &SetClipCmd
source§impl<T0: Encode<u32>, T1: Encode<u32>, T2: Encode<bool>> Encode<SetClipCmd> for (T0, T1, T2)
impl<T0: Encode<u32>, T1: Encode<u32>, T2: Encode<bool>> Encode<SetClipCmd> 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<SetClipCmd> for SetClipCmd
impl PartialEq<SetClipCmd> for SetClipCmd
source§fn eq(&self, other: &SetClipCmd) -> bool
fn eq(&self, other: &SetClipCmd) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SetClipCmd> for SetClipCmd
impl PartialOrd<SetClipCmd> for SetClipCmd
source§fn partial_cmp(&self, other: &SetClipCmd) -> Option<Ordering>
fn partial_cmp(&self, other: &SetClipCmd) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for SetClipCmd
impl TypeMarker for SetClipCmd
§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
§type Borrowed<'a> = &'a <SetClipCmd as TypeMarker>::Owned
type Borrowed<'a> = &'a <SetClipCmd as TypeMarker>::Owned
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