#[repr(u8)]pub enum ClientCompositionOpcode {
ClientUseImage = 0,
ClientMerge = 1,
ClientFrameScale = 2,
ClientSrcFrame = 3,
ClientTransform = 4,
ClientColorConversion = 5,
ClientAlpha = 6,
}
Variants§
ClientUseImage = 0
The client should configure the layer to use a source image.
ClientMerge = 1
The client should composite the layer.
The client must composite all the layers that have this flag, and replace them with a single layer that has the compositing result.
The flag will be present on a continuous range of layers.
ClientFrameScale = 2
The client should provide a new image produced by scaling the source image such that the dimensions of the new image’s src_frame and dest_frame are equal to the dimensions of the current image’s dest_frame.
ClientSrcFrame = 3
The client should provide a new image produced by clipping the source image to the region specified by src_frame.
ClientTransform = 4
The client should provide a new image produced by applying the desired transformation, so that TRANSFORM_IDENTITY can be specified.
ClientColorConversion = 5
The client should apply the color conversion itself.
ClientAlpha = 6
The client should apply the alpha itself.
Implementations§
Source§impl ClientCompositionOpcode
impl ClientCompositionOpcode
pub fn from_primitive(prim: u8) -> Option<Self>
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
Source§impl Clone for ClientCompositionOpcode
impl Clone for ClientCompositionOpcode
Source§fn clone(&self) -> ClientCompositionOpcode
fn clone(&self) -> ClientCompositionOpcode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ClientCompositionOpcode
impl Debug for ClientCompositionOpcode
Source§impl<D: ResourceDialect> Decode<ClientCompositionOpcode, D> for ClientCompositionOpcode
impl<D: ResourceDialect> Decode<ClientCompositionOpcode, D> for ClientCompositionOpcode
Source§impl<D: ResourceDialect> Encode<ClientCompositionOpcode, D> for ClientCompositionOpcode
impl<D: ResourceDialect> Encode<ClientCompositionOpcode, D> for ClientCompositionOpcode
Source§impl Hash for ClientCompositionOpcode
impl Hash for ClientCompositionOpcode
Source§impl Ord for ClientCompositionOpcode
impl Ord for ClientCompositionOpcode
Source§fn cmp(&self, other: &ClientCompositionOpcode) -> Ordering
fn cmp(&self, other: &ClientCompositionOpcode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ClientCompositionOpcode
impl PartialEq for ClientCompositionOpcode
Source§impl PartialOrd for ClientCompositionOpcode
impl PartialOrd for ClientCompositionOpcode
Source§impl TypeMarker for ClientCompositionOpcode
impl TypeMarker for ClientCompositionOpcode
Source§type Owned = ClientCompositionOpcode
type Owned = ClientCompositionOpcode
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
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 moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
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 ClientCompositionOpcode
impl ValueTypeMarker for ClientCompositionOpcode
Source§type Borrowed<'a> = ClientCompositionOpcode
type Borrowed<'a> = ClientCompositionOpcode
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more