tracing_perfetto_sdk_schema

Struct LayerState

Source
pub struct LayerState {
Show 43 fields pub layer_id: Option<u32>, pub what: Option<u64>, pub x: Option<f32>, pub y: Option<f32>, pub z: Option<i32>, pub w: Option<u32>, pub h: Option<u32>, pub layer_stack: Option<u32>, pub flags: Option<u32>, pub mask: Option<u32>, pub matrix: Option<Matrix22>, pub corner_radius: Option<f32>, pub background_blur_radius: Option<u32>, pub parent_id: Option<u32>, pub relative_parent_id: Option<u32>, pub alpha: Option<f32>, pub color: Option<Color3>, pub transparent_region: Option<RegionProto>, pub transform: Option<u32>, pub transform_to_display_inverse: Option<bool>, pub crop: Option<RectProto>, pub buffer_data: Option<BufferData>, pub api: Option<i32>, pub has_sideband_stream: Option<bool>, pub color_transform: Option<ColorTransformProto>, pub blur_regions: Vec<BlurRegion>, pub window_info_handle: Option<WindowInfo>, pub bg_color_alpha: Option<f32>, pub bg_color_dataspace: Option<i32>, pub color_space_agnostic: Option<bool>, pub shadow_radius: Option<f32>, pub frame_rate_selection_priority: Option<i32>, pub frame_rate: Option<f32>, pub frame_rate_compatibility: Option<i32>, pub change_frame_rate_strategy: Option<i32>, pub fixed_transform_hint: Option<u32>, pub frame_number: Option<u64>, pub auto_refresh: Option<bool>, pub is_trusted_overlay: Option<bool>, pub buffer_crop: Option<RectProto>, pub destination_frame: Option<RectProto>, pub drop_input_mode: Option<i32>, pub trusted_overlay: Option<i32>,
}
Expand description

Keep insync with layer_state_t

Fields§

§layer_id: Option<u32>§what: Option<u64>§x: Option<f32>§y: Option<f32>§z: Option<i32>§w: Option<u32>§h: Option<u32>§layer_stack: Option<u32>§flags: Option<u32>§mask: Option<u32>§matrix: Option<Matrix22>§corner_radius: Option<f32>§background_blur_radius: Option<u32>§parent_id: Option<u32>§relative_parent_id: Option<u32>§alpha: Option<f32>§color: Option<Color3>§transparent_region: Option<RegionProto>§transform: Option<u32>§transform_to_display_inverse: Option<bool>§crop: Option<RectProto>§buffer_data: Option<BufferData>§api: Option<i32>§has_sideband_stream: Option<bool>§color_transform: Option<ColorTransformProto>§blur_regions: Vec<BlurRegion>§window_info_handle: Option<WindowInfo>§bg_color_alpha: Option<f32>§bg_color_dataspace: Option<i32>§color_space_agnostic: Option<bool>§shadow_radius: Option<f32>§frame_rate_selection_priority: Option<i32>§frame_rate: Option<f32>§frame_rate_compatibility: Option<i32>§change_frame_rate_strategy: Option<i32>§fixed_transform_hint: Option<u32>§frame_number: Option<u64>§auto_refresh: Option<bool>§is_trusted_overlay: Option<bool>

unused

§buffer_crop: Option<RectProto>§destination_frame: Option<RectProto>§drop_input_mode: Option<i32>§trusted_overlay: Option<i32>

Implementations§

Source§

impl LayerState

Source

pub fn layer_id(&self) -> u32

Returns the value of layer_id, or the default value if layer_id is unset.

Source

pub fn what(&self) -> u64

Returns the value of what, or the default value if what is unset.

Source

pub fn x(&self) -> f32

Returns the value of x, or the default value if x is unset.

Source

pub fn y(&self) -> f32

Returns the value of y, or the default value if y is unset.

Source

pub fn z(&self) -> i32

Returns the value of z, or the default value if z is unset.

Source

pub fn w(&self) -> u32

Returns the value of w, or the default value if w is unset.

Source

pub fn h(&self) -> u32

Returns the value of h, or the default value if h is unset.

Source

pub fn layer_stack(&self) -> u32

Returns the value of layer_stack, or the default value if layer_stack is unset.

Source

pub fn flags(&self) -> u32

Returns the value of flags, or the default value if flags is unset.

Source

pub fn mask(&self) -> u32

Returns the value of mask, or the default value if mask is unset.

Source

pub fn corner_radius(&self) -> f32

Returns the value of corner_radius, or the default value if corner_radius is unset.

Source

pub fn background_blur_radius(&self) -> u32

Returns the value of background_blur_radius, or the default value if background_blur_radius is unset.

Source

pub fn parent_id(&self) -> u32

Returns the value of parent_id, or the default value if parent_id is unset.

Source

pub fn relative_parent_id(&self) -> u32

Returns the value of relative_parent_id, or the default value if relative_parent_id is unset.

Source

pub fn alpha(&self) -> f32

Returns the value of alpha, or the default value if alpha is unset.

Source

pub fn transform(&self) -> u32

Returns the value of transform, or the default value if transform is unset.

Source

pub fn transform_to_display_inverse(&self) -> bool

Returns the value of transform_to_display_inverse, or the default value if transform_to_display_inverse is unset.

Source

pub fn api(&self) -> i32

Returns the value of api, or the default value if api is unset.

Source

pub fn has_sideband_stream(&self) -> bool

Returns the value of has_sideband_stream, or the default value if has_sideband_stream is unset.

Source

pub fn bg_color_alpha(&self) -> f32

Returns the value of bg_color_alpha, or the default value if bg_color_alpha is unset.

Source

pub fn bg_color_dataspace(&self) -> i32

Returns the value of bg_color_dataspace, or the default value if bg_color_dataspace is unset.

Source

pub fn color_space_agnostic(&self) -> bool

Returns the value of color_space_agnostic, or the default value if color_space_agnostic is unset.

Source

pub fn shadow_radius(&self) -> f32

Returns the value of shadow_radius, or the default value if shadow_radius is unset.

Source

pub fn frame_rate_selection_priority(&self) -> i32

Returns the value of frame_rate_selection_priority, or the default value if frame_rate_selection_priority is unset.

Source

pub fn frame_rate(&self) -> f32

Returns the value of frame_rate, or the default value if frame_rate is unset.

Source

pub fn frame_rate_compatibility(&self) -> i32

Returns the value of frame_rate_compatibility, or the default value if frame_rate_compatibility is unset.

Source

pub fn change_frame_rate_strategy(&self) -> i32

Returns the value of change_frame_rate_strategy, or the default value if change_frame_rate_strategy is unset.

Source

pub fn fixed_transform_hint(&self) -> u32

Returns the value of fixed_transform_hint, or the default value if fixed_transform_hint is unset.

Source

pub fn frame_number(&self) -> u64

Returns the value of frame_number, or the default value if frame_number is unset.

Source

pub fn auto_refresh(&self) -> bool

Returns the value of auto_refresh, or the default value if auto_refresh is unset.

Source

pub fn is_trusted_overlay(&self) -> bool

Returns the value of is_trusted_overlay, or the default value if is_trusted_overlay is unset.

Source

pub fn drop_input_mode(&self) -> DropInputMode

Returns the enum value of drop_input_mode, or the default if the field is unset or set to an invalid enum value.

Source

pub fn set_drop_input_mode(&mut self, value: DropInputMode)

Sets drop_input_mode to the provided enum value.

Source

pub fn trusted_overlay(&self) -> TrustedOverlay

Returns the enum value of trusted_overlay, or the default if the field is unset or set to an invalid enum value.

Source

pub fn set_trusted_overlay(&mut self, value: TrustedOverlay)

Sets trusted_overlay to the provided enum value.

Trait Implementations§

Source§

impl Clone for LayerState

Source§

fn clone(&self) -> LayerState

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LayerState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for LayerState

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Message for LayerState

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
where B: BufMut, Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
where B: Buf, Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
where B: Buf, Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for LayerState

Source§

fn eq(&self, other: &LayerState) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for LayerState

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.